ome.tools.spring
Class OnContextRefreshedEventListener

java.lang.Object
  extended by 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

Constructor Summary
OnContextRefreshedEventListener()
           
OnContextRefreshedEventListener(boolean handleOthers, int limit)
           
 
Method Summary
abstract  void handleContextRefreshedEvent(org.springframework.context.event.ContextRefreshedEvent event)
           
 void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnContextRefreshedEventListener

public OnContextRefreshedEventListener()

OnContextRefreshedEventListener

public OnContextRefreshedEventListener(boolean handleOthers,
                                       int limit)
Method Detail

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.4-dbcbce5a-b4

Copyright © 2009 The University of Dundee. All Rights Reserved.