Package ome.tools.spring
Class OnContextRefreshedEventListener
- java.lang.Object
-
- ome.tools.spring.OnContextRefreshedEventListener
-
- All Implemented Interfaces:
java.util.EventListener
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
- Direct Known Subclasses:
DefaultPolicyService
,ExtendedMetadata.Impl
,GraphPathBean
,ScriptRepoHelper
,ServerUpMailSender
public abstract class OnContextRefreshedEventListener extends java.lang.Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.context.ApplicationContextAware
ApplicationListener
which only listens forContextRefreshedEvent
and only responds to the first one.- Since:
- 4.3.0
-
-
Constructor Summary
Constructors Constructor Description OnContextRefreshedEventListener()
OnContextRefreshedEventListener(boolean handleOthers, int limit)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
handleContextRefreshedEvent(org.springframework.context.event.ContextRefreshedEvent event)
void
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
handleContextRefreshedEvent
public abstract void handleContextRefreshedEvent(org.springframework.context.event.ContextRefreshedEvent event)
-
-