Class SimplePluginActivator
java.lang.Object
eu.rarogsoftware.rarog.platform.plugins.context.SimplePluginActivator
- All Implemented Interfaces:
PluginActivator
The simples implementation of
PluginActivator
for spring based plugins.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSimplePluginActivator
(org.osgi.framework.BundleContext bundleContext, OsgiPluginApplicationContext springContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
Invoked by PluginsManager when plugin is activated.void
Invoked by PluginsManager before plugin is deactivated.org.osgi.framework.BundleContext
Set ofFeatureDescriptor
s returned by this method is plugged into registeredFeatureModule
s.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.rarogsoftware.rarog.platform.api.plugins.PluginActivator
purge
-
Constructor Details
-
SimplePluginActivator
public SimplePluginActivator(org.osgi.framework.BundleContext bundleContext, OsgiPluginApplicationContext springContext)
-
-
Method Details
-
getBundleContext
public org.osgi.framework.BundleContext getBundleContext() -
getSpringContext
-
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
-
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
-