org.sakaiproject.entitybroker.util.spring
Class BeanCollectorAutoRegistrar

java.lang.Object
  extended by org.sakaiproject.entitybroker.util.spring.BeanCollectorAutoRegistrar
All Implemented Interfaces:
EventListener, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

public class BeanCollectorAutoRegistrar
extends Object
implements org.springframework.context.ApplicationListener, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean

This will collect the autoregistered beans and place them into all the locations which requested them

Author:
Aaron Zeckoski (aaron@caret.cam.ac.uk)

Nested Class Summary
static class BeanCollectorAutoRegistrar.OrderComparator
          Comparator to order the collected beans based on order or use default order otherwise
 
Constructor Summary
BeanCollectorAutoRegistrar()
           
 
Method Summary
 void afterPropertiesSet()
           
 void init()
           
 void onApplicationEvent(org.springframework.context.ApplicationEvent 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

BeanCollectorAutoRegistrar

public BeanCollectorAutoRegistrar()
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware

onApplicationEvent

public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener

init

public void init()

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2007-2012 CARET, University of Cambridge. All Rights Reserved.