public class PluginActivator extends Object implements org.osgi.framework.BundleActivator, PluginContext
Modifier and Type | Field and Description |
---|---|
protected org.osgi.framework.Bundle |
bundle |
private org.osgi.framework.BundleContext |
bundleContext |
protected CoreService |
dmx |
private Logger |
logger |
protected ModelFactory |
mf |
private PluginImpl |
plugin |
private String |
pluginName |
Constructor and Description |
---|
PluginActivator() |
Modifier and Type | Method and 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() |
protected CoreService dmx
protected ModelFactory mf
protected org.osgi.framework.Bundle bundle
private org.osgi.framework.BundleContext bundleContext
private PluginImpl plugin
private String pluginName
public PluginActivator()
public void start(org.osgi.framework.BundleContext context)
start
in interface org.osgi.framework.BundleActivator
public void stop(org.osgi.framework.BundleContext context)
stop
in interface org.osgi.framework.BundleActivator
public void preInstall()
preInstall
in interface PluginContext
public void init()
init
in interface PluginContext
public void shutdown()
shutdown
in interface PluginContext
public void serviceArrived(Object service)
serviceArrived
in interface PluginContext
public void serviceGone(Object service)
serviceGone
in interface PluginContext
public final String getPluginName()
getPluginName
in interface PluginContext
public final org.osgi.framework.BundleContext getBundleContext()
getBundleContext
in interface PluginContext
public final void setCoreService(CoreService dmx)
setCoreService
in interface PluginContext
protected final InputStream getStaticResource(String name)
protected final void publishFileSystem(String uriNamespace, String path)
path
- An absolute path to a directory.Copyright © 2018. All Rights Reserved.