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 TypeMethodDescriptionvoid
activate()
Invoked by PluginsManager when plugin is activated.void
Invoked by PluginsManager before plugin is deactivated.Set ofFeatureDescriptor
s returned by this method is plugged into registeredFeatureModule
s.void
purge()
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:PluginActivator
Invoked by PluginsManager when plugin is activated. Allows plugin to prepare resources and environment for plugin work. It is invoked before manager importsFeatureDescriptor
list and plug it into feature modules.- Specified by:
activate
in interfacePluginActivator
-
deactivate
public void deactivate()Description copied from interface:PluginActivator
Invoked by PluginsManager before plugin is deactivated. Allows plugin to clean up all resources and environment. It is invoked after disabling dependant plugins.- Specified by:
deactivate
in interfacePluginActivator
-
purge
public void purge()Description copied from interface:PluginActivator
Invoked by PluginsManager when plugin is request to remove all its data.- Specified by:
purge
in interfacePluginActivator
-
getFeatureDescriptors
Description copied from interface:PluginActivator
Set ofFeatureDescriptor
s returned by this method is plugged into registeredFeatureModule
s.- Specified by:
getFeatureDescriptors
in interfacePluginActivator
- Returns:
- Set of
FeatureDescriptor
s provided by plugin
-