List of usage examples for org.springframework.context ApplicationListener interface-usage
From source file com.mysample.springbootsample.dbloader.UserDataLoader.java
@Component public class UserDataLoader implements ApplicationListener<ContextRefreshedEvent> { private Logger logger = Logger.getLogger(UserDataLoader.class); @Autowired
From source file com.clicktravel.cheddar.server.application.lifecycle.LifecycleController.java
/**
* Controls the start and shutdown of all {@link MessageListeners}. This class progresses the lifecycle status of this
* application instance when various enterXXXstate() methods are called. These methods are called by an external trigger
* (system event handlers) under the control of a scripted blue-green deployment procedure.
*/
@Component
From source file com.myproject.axom.priceengine.init.ProductGenerator.java
/** * * @author Robin Wang 9/19/2016 */ public class ProductGenerator implements ApplicationListener {
From source file util.SampleDataProvider.java
/**
* Spring component to populate the configured {@link DataSource} with the
* sample data SQL file (see {@code src/main/resources/data.sql}) if the
* application is started with the {@code with-data} profile being active.
*
*/
From source file de.fh_zwickau.spr.crinc.component.ContextRefreshedListener.java
@Component public class ContextRefreshedListener implements ApplicationListener<ContextRefreshedEvent> { @Autowired private IStartupService startupService; @Override
From source file org.mifos.module.sms.listener.SendSMSEventListener.java
@Component public class SendSMSEventListener implements ApplicationListener<SendSMSEvent> { private static final Logger logger = LoggerFactory.getLogger(SendSMSEventListener.class); private final SMSBridgeConfigRepository smsBridgeConfigRepository;
From source file com.oreilly.springdata.rest.util.SampleDataProvider.java
/**
* Spring component to populate the configured {@link DataSource} with the sample data SQL file (see
* {@code src/main/resources/data.sql}) if the application is started with the {@code with-data} profile being active.
*
* @author Oliver Gierke
*/
From source file io.jmnarloch.spring.cloud.discovery.DiscoveryClientPropertySourceConfigurer.java
/**
* An custom {@link ApplicationEvent} listener that plugs in into Spring Boot
* {@link org.springframework.core.env.Environment} initialization phase and register custom
* {@link DiscoveryClientPropertySource}.
*
* @author Jakub Narloch
From source file org.codehaus.groovy.grails.plugins.springsecurity.SecurityEventListener.java
/**
* Registers as an event listener and delegates handling of security-related events
* to optional closures defined in Config.groovy.
* <p/>
* The following callbacks are supported:<br/>
* <ul>
From source file uk.co.caprica.bootlace.startup.ApplicationStartup.java
/**
* Component containing operations to execute on application startup.
* <p>
* This component initialises the configured database with seed data.
* <p>
* <em>This component only exists for purposes of this reference application and would not