com.sag.osami.contextstore.osgi
Class OsgiContextStoreActivator

java.lang.Object
  extended by com.sag.osami.contextstore.osgi.OsgiContextStoreActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class OsgiContextStoreActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator

ContextStore OSGi startup and cleanup class. It searches for the following ContextStore components via the OSGi service registry:

It falls back to the defaults of the ContextStoreBuilder, if a component is not found in the service registry, and in turn registers them as a service.

It also enables service trackers which are responsible for automatically register IContextHandlers (and ISerializedContextHandlers, ISerializedContextProducers) if they are registered as OSGi services.


Constructor Summary
OsgiContextStoreActivator()
           
 
Method Summary
static org.osgi.framework.BundleContext getContext()
           
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsgiContextStoreActivator

public OsgiContextStoreActivator()
Method Detail

getContext

public static org.osgi.framework.BundleContext getContext()

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception