Class EventSendingPluginActivator
java.lang.Object
eu.rarogsoftware.rarog.platform.plugins.context.EventSendingPluginActivator
- All Implemented Interfaces:
PluginActivator
-
Constructor Summary
ConstructorsConstructorDescriptionEventSendingPluginActivator(PluginActivator delegate, org.springframework.context.ApplicationEventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()Invoked by PluginsManager when plugin is activated.voidInvoked by PluginsManager before plugin is deactivated.Set ofFeatureDescriptors returned by this method is plugged into registeredFeatureModules.voidpurge()Invoked by PluginsManager when plugin is request to remove all its data.
-
Constructor Details
-
EventSendingPluginActivator
public EventSendingPluginActivator(PluginActivator delegate, org.springframework.context.ApplicationEventPublisher eventPublisher)
-
-
Method Details
-
activate
public void activate()Description copied from interface:PluginActivatorInvoked by PluginsManager when plugin is activated. Allows plugin to prepare resources and environment for plugin work. It is invoked before manager importsFeatureDescriptorlist and plug it into feature modules.- Specified by:
activatein interfacePluginActivator
-
deactivate
public void deactivate()Description copied from interface:PluginActivatorInvoked by PluginsManager before plugin is deactivated. Allows plugin to clean up all resources and environment. It is invoked after disabling dependant plugins.- Specified by:
deactivatein interfacePluginActivator
-
purge
public void purge()Description copied from interface:PluginActivatorInvoked by PluginsManager when plugin is request to remove all its data.- Specified by:
purgein interfacePluginActivator
-
getFeatureDescriptors
Description copied from interface:PluginActivatorSet ofFeatureDescriptors returned by this method is plugged into registeredFeatureModules.- Specified by:
getFeatureDescriptorsin interfacePluginActivator- Returns:
- Set of
FeatureDescriptors provided by plugin
-