Example usage for org.springframework.context ApplicationListener interface-usage

List of usage examples for org.springframework.context ApplicationListener interface-usage

Introduction

In this page you can find the example usage for org.springframework.context ApplicationListener interface-usage.

Usage

From source file org.owasp.dependencytrack.listener.FileSystemInitializer.java

/**
 * Spring component that initializes the directory structure used by DependencyTrack.
 *
 * @author Steve Springett (steve.springett@owasp.org)
 */
@Component

From source file com.clicktravel.cheddar.server.application.status.ApplicationInstanceStartedEventPublisher.java

/**
 * Publishes an {@link ApplicationInstanceStartedEvent} when this application instance starts
 */
@Component
public class ApplicationInstanceStartedEventPublisher implements ApplicationListener<ContextRefreshedEvent> {

From source file com.fortuityframework.spring.broker.SpringLIFOQueueEventBroker.java

/**
 * LIFO Queue Event broker for use with the Spring framework. To use this
 * broker, only a single line of configuration is needed in your Spring context.
 * 
 * {@code <bean id="eventBroker" class="com.fortuityframework.spring.broker.SpringLIFOQueueEventBroker"></bean>}
 * 

From source file com.mysample.dbloader.UserDataLoader.java

@Component
public class UserDataLoader implements ApplicationListener<ContextRefreshedEvent> {

    @Autowired
    private UserRepository userRepository;

From source file com.fortuityframework.spring.broker.SpringFIFOQueueEventBroker.java

/**
 * FIFO Queue Event broker for use with the Spring framework. To use this
 * broker, only a single line of configuration is needed in your Spring context.
 * 
 * {@code <bean id="eventBroker" class="com.fortuityframework.spring.broker.SpringFIFOQueueEventBroker"></bean>}
 * 

From source file com.fortuityframework.spring.broker.SpringPriorityQueueEventBroker.java

/**
 * Priority Queue Event broker for use with the Spring framework. To use this
 * broker, only a single line of configuration is needed in your Spring context.
 * 
 * {@code <bean id="eventBroker" class="com.fortuityframework.spring.broker.SpringPriorityQueueEventBroker"></bean>}
 * 

From source file br.com.caelum.vraptor.ioc.spring.StereotypedBeansRegistrar.java

/**
 * @author Fabio Kung
 */
@ApplicationScoped
public class StereotypedBeansRegistrar implements ApplicationListener<ApplicationEvent> {
    private static final Logger LOGGER = LoggerFactory.getLogger(StereotypedBeansRegistrar.class);

From source file fr.univrouen.poste.provider.AuthenticationSuccessEventListener.java

@Component
public class AuthenticationSuccessEventListener implements ApplicationListener<AuthenticationSuccessEvent> {

    @Override
    @Transactional
    public void onApplicationEvent(AuthenticationSuccessEvent ev) {

From source file sample.websocket.WebSocketConnectHandler.java

public class WebSocketConnectHandler<S> implements ApplicationListener<SessionConnectEvent> {
    private ActiveWebSocketUserRepository repository;
    private SimpMessageSendingOperations messagingTemplate;

    public WebSocketConnectHandler(SimpMessageSendingOperations messagingTemplate,
            ActiveWebSocketUserRepository repository) {

From source file com.sangupta.jerry.mongodb.SpringMongoClosingListener.java

/**
 * {@link ApplicationListener} of Spring framework that allows for closing of MongoDB
 * instance so that all thread local's are released and it does not create a memory leak.
 * 
 * @author sangupta
 *