Class OnContextRefreshedEventListener

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
    Direct Known Subclasses:
    DefaultPolicyService, ExtendedMetadata.Impl, GraphPathBean, ScriptRepoHelper, ServerUpMailSender

    public abstract class OnContextRefreshedEventListener
    extends java.lang.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
    • 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)