Class SbpPluginStateChangedEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.laxture.sbp.spring.boot.SbpPluginStateChangedEvent
All Implemented Interfaces:
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:
  • Constructor Details

    • SbpPluginStateChangedEvent

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