Class BeanCollectorAutoRegistrar
- java.lang.Object
-
- org.sakaiproject.entitybroker.util.spring.BeanCollectorAutoRegistrar
-
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,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
Nested Classes Modifier and Type Class Description static classBeanCollectorAutoRegistrar.OrderComparatorComparator to order the collected beans based on order or use default order otherwise
-
Constructor Summary
Constructors Constructor Description BeanCollectorAutoRegistrar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voidinit()voidonApplicationEvent(org.springframework.context.ApplicationEvent event)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener
-
init
public void init()
-
-