Nuxeo Enterprise Platform 5.1

org.nuxeo.runtime.osgi
Class OSGiRuntimeActivator

java.lang.Object
  extended by org.nuxeo.runtime.osgi.OSGiRuntimeActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator
Direct Known Subclasses:
OSGIRuntimeTestActivator

public class OSGiRuntimeActivator
extends Object
implements org.osgi.framework.BundleActivator

The default BundleActivator for NXRuntime over an OSGi comp. platform.

Author:
Bogdan Stefanescu

Field Summary
protected  OSGiComponentLoader componentLoader
           
protected  OSGiRuntimeService runtime
           
 
Constructor Summary
OSGiRuntimeActivator()
           
 
Method Summary
protected  void initialize(OSGiRuntimeService runtime)
          Gives a chance to derived classes to initialize them before the runtime is started.
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
protected  void uninitialize(OSGiRuntimeService runtime)
          Gives a chance to derived classes to unitialize them after the runtime is stopped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runtime

protected OSGiRuntimeService runtime

componentLoader

protected OSGiComponentLoader componentLoader
Constructor Detail

OSGiRuntimeActivator

public OSGiRuntimeActivator()
Method Detail

start

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

stop

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

initialize

protected void initialize(OSGiRuntimeService runtime)
Gives a chance to derived classes to initialize them before the runtime is started.

Parameters:
runtime - the current runtime

uninitialize

protected void uninitialize(OSGiRuntimeService runtime)
Gives a chance to derived classes to unitialize them after the runtime is stopped.

Parameters:
runtime - the current runtime

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.