Package systems.dmx.core.osgi
Class PluginActivator
- java.lang.Object
-
- systems.dmx.core.osgi.PluginActivator
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator,PluginContext
- Direct Known Subclasses:
AccessControlPlugin,AccountManagementPlugin,CachingPlugin,ConfigPlugin,ContactsPlugin,EventsPlugin,FacetsPlugin,FilesPlugin,TimestampsPlugin,TopicmapsPlugin,WebclientPlugin,WebservicePlugin,WorkspacesPlugin
public class PluginActivator extends Object implements org.osgi.framework.BundleActivator, PluginContext
Base class for all DMX plugins. All DMX plugins are derived from this class, directly or indirectly. ### FIXDOC: subclassing is not required if the plugin has no server-side part.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.osgi.framework.Bundlebundleprotected CoreServicedmxprotected ModelFactorymf
-
Constructor Summary
Constructors Constructor Description PluginActivator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.osgi.framework.BundleContextgetBundleContext()StringgetPluginName()protected InputStreamgetStaticResource(String name)protected StringgetUri()voidinit()voidpreInstall()protected voidpublishFileSystem(String uriNamespace, String path)Publishes a directory of the server's file system.voidserviceArrived(Object service)voidserviceGone(Object service)voidsetCoreService(CoreService dmx)voidshutdown()voidstart(org.osgi.framework.BundleContext context)voidstop(org.osgi.framework.BundleContext context)StringtoString()
-
-
-
Field Detail
-
dmx
protected CoreService dmx
-
mf
protected ModelFactory mf
-
bundle
protected org.osgi.framework.Bundle bundle
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext context)
- Specified by:
startin interfaceorg.osgi.framework.BundleActivator
-
stop
public void stop(org.osgi.framework.BundleContext context)
- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator
-
preInstall
public void preInstall()
- Specified by:
preInstallin interfacePluginContext
-
init
public void init()
- Specified by:
initin interfacePluginContext
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfacePluginContext
-
serviceArrived
public void serviceArrived(Object service)
- Specified by:
serviceArrivedin interfacePluginContext
-
serviceGone
public void serviceGone(Object service)
- Specified by:
serviceGonein interfacePluginContext
-
getPluginName
public final String getPluginName()
- Specified by:
getPluginNamein interfacePluginContext
-
getBundleContext
public final org.osgi.framework.BundleContext getBundleContext()
- Specified by:
getBundleContextin interfacePluginContext
-
setCoreService
public final void setCoreService(CoreService dmx)
- Specified by:
setCoreServicein interfacePluginContext
-
getUri
protected final String getUri()
-
getStaticResource
protected final InputStream getStaticResource(String name)
-
-