public abstract class OnContextRefreshedEventListener extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.context.ApplicationContextAware
ApplicationListener which only listens for
ContextRefreshedEvent and only responds to the first one.| Constructor and Description |
|---|
OnContextRefreshedEventListener() |
OnContextRefreshedEventListener(boolean handleOthers,
int limit) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
handleContextRefreshedEvent(org.springframework.context.event.ContextRefreshedEvent event) |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
Handle an application event.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Set the ApplicationContext that this object runs in.
|
public OnContextRefreshedEventListener()
public OnContextRefreshedEventListener(boolean handleOthers,
int limit)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
org.springframework.context.ApplicationContextAwareInvoked after population of normal bean properties but before an init callback such
as InitializingBean.afterPropertiesSet()
or a custom init-method. Invoked after ResourceLoaderAware.setResourceLoader(org.springframework.core.io.ResourceLoader),
ApplicationEventPublisherAware.setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher) and
MessageSourceAware, if applicable.
setApplicationContext in interface org.springframework.context.ApplicationContextAwareapplicationContext - the ApplicationContext object to be used by this objectorg.springframework.context.ApplicationContextException - in case of context initialization errorsorg.springframework.beans.BeansException - if thrown by application context methodsBeanInitializationExceptionpublic void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
org.springframework.context.ApplicationListeneronApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>event - the event to respond topublic abstract void handleContextRefreshedEvent(org.springframework.context.event.ContextRefreshedEvent event)
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.