public class OSGiRuntimeActivator extends Object implements org.osgi.framework.BundleActivator
| Constructor and Description |
|---|
OSGiRuntimeActivator() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static OSGiRuntimeActivator getInstance()
public void start(org.osgi.framework.BundleContext context)
throws Exception
start in interface org.osgi.framework.BundleActivatorExceptionpublic void stop(org.osgi.framework.BundleContext context)
throws Exception
stop in interface org.osgi.framework.BundleActivatorExceptionpublic org.osgi.framework.Bundle getBundle(String name)
public Class<?> loadClass(String ref) throws Exception
bundleSymbolicName:className
If no bundleSymbolicName: prefix is given then a classForName will be doneref - Exceptionpublic Class<?> loadClass(String bundleName, String className) throws Exception
ExceptionCopyright © 2014 Nuxeo SA. All rights reserved.