List of usage examples for org.springframework.context ApplicationListener interface-usage
From source file org.springsource.restbucks.training.processing.OrderProcessor.java
/**
* Simple {@link ApplicationListener} implementation that listens to {@link OrderPaidEvent}s marking the according
* {@link Order} as in process, sleeping for 10 seconds and marking the order as processed right after that.
*
* @author Oliver Gierke
*/
From source file io.fabric8.spring.cloud.kubernetes.profile.KubernetesProfileApplicationListener.java
public class KubernetesProfileApplicationListener implements ApplicationListener<ApplicationEnvironmentPreparedEvent>, Ordered { private static final Logger LOGGER = LoggerFactory.getLogger(KubernetesProfileApplicationListener.class); private static final String KUBERNETES_PROFILE = "kubernetes";
From source file org.moserp.common.repository.CreateIdListener.java
@Component public class CreateIdListener implements ApplicationListener<MongoMappingEvent<?>> { @Autowired private SequenceService sequenceService;
From source file com.devnexus.ting.core.applicationlistener.ContextRefreshedEventListener.java
/** * * @author Gunnar Hillert * */ public class ContextRefreshedEventListener implements ApplicationListener<ContextRefreshedEvent> {
From source file org.opentides.listener.ApplicationStartupListener.java
/**
* This class is configured to be executed during application startup. Checks to
* ensure admin user is created in case of new installation. Also creates
* application variables.
*
* @author allanctan
From source file to.sparks.mtgox.example.WebsocketExamples.java
/** * Shows how to use the MtGox real-time streaming websocket API * * @author SparksG */ public class WebsocketExamples implements ApplicationListener<StreamEvent> {
From source file io.gravitee.management.security.listener.AuthenticationSuccessListener.java
/** * @author David BRASSELY (brasseld at gmail.com) */ public class AuthenticationSuccessListener implements ApplicationListener<AuthenticationSuccessEvent> { @Autowired
From source file eu.openanalytics.rsb.config.SpringContextEventListener.java
/** * @author "OpenAnalytics <rsb.development@openanalytics.eu>" */ public class SpringContextEventListener implements ApplicationListener<ContextRefreshedEvent> { private static final Log LOGGER = LogFactory.getLog(SpringContextEventListener.class);
From source file org.joinfaces.tomcat.JsfTomcatApplicationListener.java
/**
* Jsf Tomcat application listener to add resources to jsf access resources at
* integration tests or embedded jar.
*
* @author Marcelo Fernandes
*/
From source file org.web4thejob.sandbox.orm.MyProjectsSampleDataInitializer.java
/** * @author Veniamin Isaias * @since 1.0.0 */ public class MyProjectsSampleDataInitializer implements ApplicationListener<ContextRefreshedEvent> {