@Test public void testCreateNamingService() throws NacosException { NamingService namingService = nacosServiceFactory.createNamingService(properties); NamingService namingService2 = nacosServiceFactory .createNamingService(properties); Assert.assertTrue(namingService == namingService2); }
@Override public NamingService createNamingService(Properties properties) throws NacosException { Properties copy = new Properties(); copy.putAll(properties); return (NamingService) createWorkerManager.get(ServiceType.NAMING).run(copy, null); }
CacheableEventPublishingNacosServiceFactory implements NacosServiceFactory { @Override public NamingService createNamingService(Properties properties) throws NacosException { Properties copy = new Properties(); copy.putAll(properties); return (NamingService) createWorkerManager.get(ServiceType.NAMING).run(copy, null); } }
CacheableEventPublishingNacosServiceFactory implements NacosServiceFactory { @Override public NamingService createNamingService(Properties properties) throws NacosException { Properties copy = new Properties(); copy.putAll(properties); return (NamingService) createWorkerManager.get(ServiceType.NAMING).run(copy, null); } CacheableEventPublishingNacosServiceFactory(); }
CacheableEventPublishingNacosServiceFactory implements NacosServiceFactory { @Override public NamingService createNamingService(Properties properties) throws NacosException { Properties copy = new Properties(); copy.putAll(properties); return (NamingService) createWorkerManager.get(ServiceType.NAMING).run(copy, null); } CacheableEventPublishingNacosServiceFactory(); static CacheableEventPublishingNacosServiceFactory getSingleton(); @Override ConfigService createConfigService(Properties properties); @Override NamingService createNamingService(Properties properties); @Override NamingMaintainService createNamingMaintainService(Properties properties); T deferCreateService(T service, Properties properties); @SuppressWarnings("unchecked") void publishDeferService(ApplicationContext context); void setApplicationContext(ApplicationContext applicationContext); @Override Collection<ConfigService> getConfigServices(); @Override Collection<NamingService> getNamingServices(); @Override Collection<NamingMaintainService> getNamingMaintainService(); }
CacheableEventPublishingNacosServiceFactory implements NacosServiceFactory { @Override public NamingService createNamingService(Properties properties) throws NacosException { Properties copy = new Properties(); copy.putAll(properties); return (NamingService) createWorkerManager.get(ServiceType.NAMING).run(copy, null); } CacheableEventPublishingNacosServiceFactory(); static CacheableEventPublishingNacosServiceFactory getSingleton(); @Override ConfigService createConfigService(Properties properties); @Override NamingService createNamingService(Properties properties); @Override NamingMaintainService createNamingMaintainService(Properties properties); T deferCreateService(T service, Properties properties); @SuppressWarnings("unchecked") void publishDeferService(ApplicationContext context); void setApplicationContext(ApplicationContext applicationContext); @Override Collection<ConfigService> getConfigServices(); @Override Collection<NamingService> getNamingServices(); @Override Collection<NamingMaintainService> getNamingMaintainService();  }