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.BundleActivatorpublic void stop(org.osgi.framework.BundleContext context)
stop in interface org.osgi.framework.BundleActivatorpublic void preInstall()
preInstall in interface PluginContextpublic void init()
init in interface PluginContextpublic void shutdown()
shutdown in interface PluginContextpublic void serviceArrived(Object service)
serviceArrived in interface PluginContextpublic void serviceGone(Object service)
serviceGone in interface PluginContextpublic final String getPluginName()
getPluginName in interface PluginContextpublic final org.osgi.framework.BundleContext getBundleContext()
getBundleContext in interface PluginContextpublic final void setCoreService(CoreService dmx)
setCoreService in interface PluginContextprotected 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.