Class SbpPluginStateChangedEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class SbpPluginStateChangedEvent
    extends org.springframework.context.ApplicationEvent
    This event will be published to main app application context when any plugin is changed in batch. Plugins' state might be manipulate in batch, like start up with main app/restart all, etc. This event is useful if you need to do something after all plugin manipulation is done.
    For example. When plugin jar file get updated, the previous register classloader will not be able to access its resource file anymore. For batch plugin jar files updating, refreshing stuffs could only be done after all plugins reloaded and new plugin classloaders provided.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      SbpPluginStateChangedEvent​(org.springframework.context.ApplicationContext mainApplicationContext)  
    • Method Summary

      • Methods inherited from class org.springframework.context.ApplicationEvent

        getTimestamp
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SbpPluginStateChangedEvent

        public SbpPluginStateChangedEvent​(org.springframework.context.ApplicationContext mainApplicationContext)