@PostConstruct private void initialize() { logger.info( "SampleRedisConfig initialized - expireSeconds: {}, clusterNodes: {}, commandTimeout: {}, someMap: {}, someList: {}", expireSeconds, clusterNodes, commandTimeout, someMap, someList); }
@PostConstruct public void start() { if (started.compareAndSet(false, true)) { configExecutor.scheduleWithFixedDelay(this::load, 1, 1, TimeUnit.SECONDS); } }
@PostConstruct public void start() { if (started.compareAndSet(false, true)) { refreshExecutor.scheduleWithFixedDelay(this::refreshAndStartQueries, 1, 1, TimeUnit.MILLISECONDS); } }
@PostConstruct public void init() { authorities = new ArrayList<>(); authorities.add(new SimpleGrantedAuthority("ROLE_user")); }
@PostConstruct public void init() { initialized = true; }
@PostConstruct public void init() { final ApplicationContext applicationContext = applicationContextHolder.getApplicationContext(); this.integerDivider = applicationContext.getBean(IntegerDivider.class); }
@PostConstruct public void init() { final ApplicationContext applicationContext = applicationContextHolder.getApplicationContext(); this.integerDivider = applicationContext.getBean(IntegerDivider.class); }
@PostConstruct private void postConstruct() { restTemplate = restTemplateFactory.getObject(); }
@PostConstruct private void init() { restTemplate = restTemplateFactory.getObject(); }
@PostConstruct public void init() { executorService = Executors.newSingleThreadExecutor(ApolloThreadFactory.create("ConfigPublishNotify", true)); }
@PostConstruct public synchronized void start() { checkState(!closed, "TaskExecutor is closed"); for (int i = 0; i < runnerThreads; i++) { addRunnerThread(); } }
@PostConstruct public void validate() { Assert.notNull(provider, "No ServiceBeanProvider injected"); } }
@PostConstruct public void init() { this.publisher.publishEvent("earlyEvent"); } }
@PostConstruct private void init() { if (this.initCalled) { throw new IllegalStateException("Already called"); } this.initCalled = true; }
@Override @PostConstruct public void afterPropertiesSet() throws Exception { this.initMethods.add("afterPropertiesSet"); }
@PostConstruct @Override public void afterPropertiesSet() throws Exception { this.initMethods.add("@PostConstruct.afterPropertiesSet"); }
@PostConstruct private void init() { if (this.init3Called) { throw new IllegalStateException("Already called"); } this.init3Called = true; }
@PostConstruct private void init() { if (this.initCalled) { throw new IllegalStateException("Init already called"); } this.initCalled = true; }
@PostConstruct private void init() { if (this.initCalled) { throw new IllegalStateException("Init already called"); } this.initCalled = true; }
@PostConstruct public void validate() { Assert.notNull(provider, "No ServiceBeanProvider injected"); } }