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 TypeMethodDescriptionvoidactivate()Invoked by PluginsManager when plugin is activated.voidInvoked by PluginsManager before plugin is deactivated.org.osgi.framework.BundleContextSet ofFeatureDescriptors returned by this method is plugged into registeredFeatureModules.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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: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
-
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
-