public class OSGiRuntimeActivator extends Object implements org.osgi.framework.BundleActivator
| Modifier and Type | Field and Description | 
|---|---|
protected OSGiComponentLoader | 
componentLoader  | 
protected org.osgi.framework.BundleContext | 
context  | 
protected org.osgi.framework.ServiceReference | 
pkgAdmin  | 
protected OSGiRuntimeService | 
runtime  | 
| Constructor and Description | 
|---|
OSGiRuntimeActivator()  | 
| Modifier and Type | Method and Description | 
|---|---|
org.osgi.framework.Bundle | 
getBundle(String name)  | 
static OSGiRuntimeActivator | 
getInstance()  | 
protected void | 
initialize(AbstractRuntimeService runtime)
Gives a chance to derived classes to initialize them before the runtime is started. 
 | 
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)  | 
protected void | 
uninitialize(AbstractRuntimeService runtime)
Gives a chance to derived classes to uninitialize them after the runtime is stopped. 
 | 
protected OSGiRuntimeService runtime
protected OSGiComponentLoader componentLoader
protected org.osgi.framework.ServiceReference pkgAdmin
protected org.osgi.framework.BundleContext context
public OSGiRuntimeActivator()
public static OSGiRuntimeActivator getInstance()
public void start(org.osgi.framework.BundleContext context)
start in interface org.osgi.framework.BundleActivatorpublic void stop(org.osgi.framework.BundleContext context)
stop in interface org.osgi.framework.BundleActivatorpublic Class<?> loadClass(String ref) throws ReflectiveOperationException
bundleSymbolicName:className If no
 bundleSymbolicName: prefix is given then a classForName will be doneref - ReflectiveOperationExceptionpublic Class<?> loadClass(String bundleName, String className) throws ReflectiveOperationException
ReflectiveOperationExceptionpublic Object newInstance(String ref) throws ReflectiveOperationException
ReflectiveOperationExceptionpublic Object newInstance(String bundleName, String className) throws ReflectiveOperationException
ReflectiveOperationExceptionprotected void initialize(AbstractRuntimeService runtime)
runtime - the current runtimeprotected void uninitialize(AbstractRuntimeService runtime)
runtime - the current runtimeCopyright © 2019 Nuxeo. All rights reserved.