Nuxeo Enterprise Platform 5.4

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

Constructor Summary
OSGiRuntimeActivator()
           
 
Method Summary
 org.osgi.framework.Bundle getBundle(String name)
           
static OSGiRuntimeActivator getInstance()
           
 Class<?> loadClass(String ref)
          Load a class from another bundle given its reference as bundleSymbolicName:className If no bundleSymbolicName: prefix is given then a classForName will be done
 Class<?> loadClass(String bundleName, String className)
           
 Object newInstance(String ref)
           
 Object newInstance(String bundleName, String className)
           
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiRuntimeActivator

public OSGiRuntimeActivator()
Method Detail

getInstance

public static OSGiRuntimeActivator getInstance()

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

getBundle

public org.osgi.framework.Bundle getBundle(String name)

loadClass

public Class<?> loadClass(String ref)
                   throws Exception
Load a class from another bundle given its reference as bundleSymbolicName:className If no bundleSymbolicName: prefix is given then a classForName will be done

Parameters:
ref -
Returns:
Throws:
Exception

loadClass

public Class<?> loadClass(String bundleName,
                          String className)
                   throws Exception
Throws:
Exception

newInstance

public Object newInstance(String ref)
                   throws Exception
Throws:
Exception

newInstance

public Object newInstance(String bundleName,
                          String className)
                   throws Exception
Throws:
Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.