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.ApplicationContextAwareApplicationListenerwhich only listens forContextRefreshedEventand 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 voidhandleContextRefreshedEvent(org.springframework.context.event.ContextRefreshedEvent event)voidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
handleContextRefreshedEvent
public abstract void handleContextRefreshedEvent(org.springframework.context.event.ContextRefreshedEvent event)
-
-