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)
start
in interface org.osgi.framework.BundleActivator
public void stop(org.osgi.framework.BundleContext context)
stop
in interface org.osgi.framework.BundleActivator
public org.osgi.framework.Bundle getBundle(String name)
public Class<?> loadClass(String ref) throws ReflectiveOperationException
bundleSymbolicName:className
If no
bundleSymbolicName:
prefix is given then a classForName will be doneref
- ReflectiveOperationException
public Class<?> loadClass(String bundleName, String className) throws ReflectiveOperationException
ReflectiveOperationException
public Object newInstance(String ref) throws ReflectiveOperationException
ReflectiveOperationException
public Object newInstance(String bundleName, String className) throws ReflectiveOperationException
ReflectiveOperationException
Copyright © 2015 Nuxeo SA. All rights reserved.