List of usage examples for org.springframework.context ApplicationListener interface-usage
From source file zipkin.server.RegisterZipkinHealthIndicators.java
/** Makes sure all zipkin components end up in the /health endpoint. */ // This is an application listener to ensure the graph is fully constructed before doing health final class RegisterZipkinHealthIndicators implements ApplicationListener { @Override public void onApplicationEvent(ApplicationEvent event) {
From source file persistence.mongodb.configuration.MongoApplicationListener.java
@Component public class MongoApplicationListener implements ApplicationListener<ContextRefreshedEvent> { @Autowired private MongoOperations mongoOps; @Override
From source file org.obp.handlers.ContextStopped.java
/**
* Created by Robert Jaremczak
* Date: 2013-10-25
*/
@Component
From source file org.obp.handlers.ContextStarted.java
/**
* Created by Robert Jaremczak
* Date: 2013-10-25
*/
@Component
From source file me.j360.trace.server.RegisterZipkinHealthIndicators.java
/** Makes sure all zipkin components end up in the /health endpoint. */ // This is an application listener to ensure the graph is fully constructed before doing health final class RegisterZipkinHealthIndicators implements ApplicationListener { @Override public void onApplicationEvent(ApplicationEvent event) {
From source file me.j360.trace.example.consumer2.RegisterZipkinHealthIndicators.java
/** Makes sure all zipkin components end up in the /health endpoint. */ // This is an application listener to ensure the graph is fully constructed before doing health final class RegisterZipkinHealthIndicators implements ApplicationListener { @Override public void onApplicationEvent(ApplicationEvent event) {
From source file com.example.autoconfigure.listener.ExampleApplicationListener.java
public class ExampleApplicationListener implements ApplicationListener<ApplicationEnvironmentPreparedEvent> { @Override public void onApplicationEvent(ApplicationEnvironmentPreparedEvent event) { System.err.println("Adding extra properties"); PropertySource<?> propertySource = new MapPropertySource("example",
From source file org.ngrinder.infra.config.ApplicationListenerBean.java
/**
* Application life-cycle event listener.
*
* This class is used to clean up the several locks.
*
* @author JunHo Yoon
From source file org.scrutmydocs.webapp.configuration.AppPostProcessor.java
@Component public class AppPostProcessor implements ApplicationListener<ContextRefreshedEvent> { private ESLogger logger = Loggers.getLogger(getClass().getName()); @Autowired
From source file name.abhijitsarkar.javaee.coffeehouse.spring.event.CoffeeHouseClosingEventListener.java
/** * @author Abhijit Sarkar */ @Component public class CoffeeHouseClosingEventListener implements ApplicationListener<OperationalEvent> { private static final Logger LOGGER = LoggerFactory.getLogger(CoffeeHouseClosingEventListener.class);