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.Bundle
bundle
protected CoreService
dmx
protected ModelFactory
mf
-
Constructor Summary
Constructors Constructor Description PluginActivator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.osgi.framework.BundleContext
getBundleContext()
String
getPluginName()
protected InputStream
getStaticResource(String name)
protected String
getUri()
void
init()
void
preInstall()
protected void
publishFileSystem(String uriNamespace, String path)
Publishes a directory of the server's file system.void
serviceArrived(Object service)
void
serviceGone(Object service)
void
setCoreService(CoreService dmx)
void
shutdown()
void
start(org.osgi.framework.BundleContext context)
void
stop(org.osgi.framework.BundleContext context)
String
toString()
-
-
-
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:
start
in interfaceorg.osgi.framework.BundleActivator
-
stop
public void stop(org.osgi.framework.BundleContext context)
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
-
preInstall
public void preInstall()
- Specified by:
preInstall
in interfacePluginContext
-
init
public void init()
- Specified by:
init
in interfacePluginContext
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfacePluginContext
-
serviceArrived
public void serviceArrived(Object service)
- Specified by:
serviceArrived
in interfacePluginContext
-
serviceGone
public void serviceGone(Object service)
- Specified by:
serviceGone
in interfacePluginContext
-
getPluginName
public final String getPluginName()
- Specified by:
getPluginName
in interfacePluginContext
-
getBundleContext
public final org.osgi.framework.BundleContext getBundleContext()
- Specified by:
getBundleContext
in interfacePluginContext
-
setCoreService
public final void setCoreService(CoreService dmx)
- Specified by:
setCoreService
in interfacePluginContext
-
getUri
protected final String getUri()
-
getStaticResource
protected final InputStream getStaticResource(String name)
-
-