List of usage examples for org.springframework.scheduling TaskScheduler getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:com.payu.ratel.config.beans.InMemoryRegistryBeanProviderFactory.java
@Override public void afterPropertiesSet() { final Environment env = beanFactory.getBean(Environment.class); TaskScheduler taskScheduler = new ThreadPoolTaskScheduler(); final String schedulerBeanName = taskScheduler.getClass().getName(); beanFactory.registerSingleton(schedulerBeanName, taskScheduler); beanFactory.initializeBean(taskScheduler, schedulerBeanName); final String inMemoryServerAddress = getRatelServiceAddress(env); final DiscoveryClient discoveryClient = new DiscoveryClient(inMemoryServerAddress); this.ratelServerFetcher = new RatelServerFetcher(discoveryClient); this.ratelServerProxyGenerator = new RatelServerProxyGenerator(beanFactory); this.ratelServerRegistry = new RatelServerRegistry(new RemoteRestDiscoveryServer(inMemoryServerAddress), taskScheduler);/*from w w w .java2 s. co m*/ }