Class 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)
    • 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