public class OSGiRuntimeContext extends DefaultRuntimeContext
| Constructor and Description |
|---|
OSGiRuntimeContext(org.osgi.framework.Bundle bundle) |
OSGiRuntimeContext(RuntimeService runtime,
org.osgi.framework.Bundle bundle) |
| Modifier and Type | Method and Description |
|---|---|
org.osgi.framework.Bundle |
getBundle()
Gets the container bundle or null if we are not running in an OSGi
environment.
|
org.osgi.framework.Bundle |
getHostBundle() |
URL |
getLocalResource(String name)
Finds a local resource having the given name.
|
URL |
getResource(String name)
Finds a resource having the given name.
|
Class<?> |
loadClass(String className)
Loads the class given its name.
|
createRegistrationInfo, createRegistrationInfo, deploy, deploy, deploy, destroy, getDeployedFiles, getRuntime, isDeployed, isDeployed, isDeployed, setRuntime, undeploy, undeploy, undeploypublic OSGiRuntimeContext(org.osgi.framework.Bundle bundle)
public OSGiRuntimeContext(RuntimeService runtime, org.osgi.framework.Bundle bundle)
public org.osgi.framework.Bundle getBundle()
RuntimeContextgetBundle in interface RuntimeContextgetBundle in class DefaultRuntimeContextpublic URL getResource(String name)
RuntimeContextgetResource in interface RuntimeContextgetResource in class DefaultRuntimeContextname - the resource nameClassLoader.getResource(String)public URL getLocalResource(String name)
RuntimeContextOnly the current bundle should be searched for the resource.
getLocalResource in interface RuntimeContextgetLocalResource in class DefaultRuntimeContextname - the local resource nameClassLoader.getResource(String)public Class<?> loadClass(String className) throws ClassNotFoundException
RuntimeContextloadClass in interface RuntimeContextloadClass in class DefaultRuntimeContextclassName - the class nameClassNotFoundException - if no such class were foundClassLoader.loadClass(String)public org.osgi.framework.Bundle getHostBundle()
Copyright © 2011 Nuxeo SA. All Rights Reserved.