ome.tools.spring
Class OnContextRefreshedEventListener
java.lang.Object
ome.tools.spring.OnContextRefreshedEventListener
- All Implemented Interfaces:
- EventListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
- Direct Known Subclasses:
- CheckAllJobs, ExtendedMetadata.Impl, NamespaceCheck
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.
- Since:
- 4.3.0
- Author:
- Josh Moore, josh at glencoesoftware.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OnContextRefreshedEventListener
public OnContextRefreshedEventListener()
OnContextRefreshedEventListener
public OnContextRefreshedEventListener(boolean handleOthers,
int limit)
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
- Specified by:
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
handleContextRefreshedEvent
public abstract void handleContextRefreshedEvent(org.springframework.context.event.ContextRefreshedEvent event)
OmeroJava Api
Version: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.