org.nuxeo.runtime.osgi
Class OSGiRuntimeActivator
java.lang.Object
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
OSGiRuntimeActivator
public OSGiRuntimeActivator()
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
Copyright © 2011 Nuxeo SAS. All Rights Reserved.