de.deepamehta.core.osgi
Class PluginActivator

Show UML class diagram
java.lang.Object
  extended by de.deepamehta.core.osgi.PluginActivator
All Implemented Interfaces:
PluginContext, BundleActivator
Direct Known Subclasses:
AccessControlPlugin, BoxRendererPlugin, CachingPlugin, FacetsPlugin, FilesPlugin, GeomapsPlugin, TimePlugin, TopicmapsPlugin, TypeEditorPlugin, WebclientPlugin, WebservicePlugin, WorkspacesPlugin

public class PluginActivator
extends Object
implements BundleActivator, PluginContext

Base class for all DeepaMehta plugins. All DeepaMehta plugins are derived from this class, directly or indirectly. ### FIXDOC: subclassing is not required if the plugin has no server-side part.


Field Summary
protected  Bundle bundle
           
private  BundleContext bundleContext
           
protected  DeepaMehtaService dms
           
private  Logger logger
           
private  PluginImpl plugin
           
private  String pluginName
           
 
Constructor Summary
PluginActivator()
           
 
Method Summary
 BundleContext getBundleContext()
           
 String getPluginName()
           
protected  InputStream getStaticResource(String name)
           
protected  String getUri()
           
 void init()
           
 void postInstall()
           
protected  void publishDirectory(String directoryPath, String uriNamespace, SecurityHandler securityHandler)
           
 void serviceArrived(PluginService service)
           
 void serviceGone(PluginService service)
           
 void setCoreService(DeepaMehtaService dms)
           
 void shutdown()
           
 void start(BundleContext context)
           
 void stop(BundleContext context)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dms

protected DeepaMehtaService dms

bundle

protected Bundle bundle

bundleContext

private BundleContext bundleContext

plugin

private PluginImpl plugin

pluginName

private String pluginName

logger

private Logger logger
Constructor Detail

PluginActivator

public PluginActivator()
Method Detail

start

public void start(BundleContext context)
Specified by:
start in interface BundleActivator

stop

public void stop(BundleContext context)
Specified by:
stop in interface BundleActivator

init

public void init()
Specified by:
init in interface PluginContext

shutdown

public void shutdown()
Specified by:
shutdown in interface PluginContext

postInstall

public void postInstall()
Specified by:
postInstall in interface PluginContext

serviceArrived

public void serviceArrived(PluginService service)
Specified by:
serviceArrived in interface PluginContext

serviceGone

public void serviceGone(PluginService service)
Specified by:
serviceGone in interface PluginContext

getPluginName

public final String getPluginName()
Specified by:
getPluginName in interface PluginContext

getBundleContext

public final BundleContext getBundleContext()
Specified by:
getBundleContext in interface PluginContext

setCoreService

public final void setCoreService(DeepaMehtaService dms)
Specified by:
setCoreService in interface PluginContext

toString

public String toString()
Overrides:
toString in class Object

getUri

protected final String getUri()

getStaticResource

protected final InputStream getStaticResource(String name)

publishDirectory

protected final void publishDirectory(String directoryPath,
                                      String uriNamespace,
                                      SecurityHandler securityHandler)
Parameters:
securityHandler - Optional. If null no security is provided.


Copyright © 2014. All Rights Reserved.