|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.model.impl.DefaultRuntimeContext org.nuxeo.runtime.osgi.OSGiRuntimeContext
public class OSGiRuntimeContext
Constructor Summary | |
---|---|
OSGiRuntimeContext(org.osgi.framework.Bundle bundle)
|
|
OSGiRuntimeContext(RuntimeService runtime,
org.osgi.framework.Bundle bundle)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.nuxeo.runtime.model.impl.DefaultRuntimeContext |
---|
createRegistrationInfo, createRegistrationInfo, deploy, deploy, deploy, destroy, getDeployedFiles, getRuntime, isDeployed, isDeployed, isDeployed, setRuntime, undeploy, undeploy, undeploy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OSGiRuntimeContext(org.osgi.framework.Bundle bundle)
public OSGiRuntimeContext(RuntimeService runtime, org.osgi.framework.Bundle bundle)
Method Detail |
---|
public org.osgi.framework.Bundle getBundle()
RuntimeContext
getBundle
in interface RuntimeContext
getBundle
in class DefaultRuntimeContext
public URL getResource(String name)
RuntimeContext
getResource
in interface RuntimeContext
getResource
in class DefaultRuntimeContext
name
- the resource name
ClassLoader.getResource(String)
public URL getLocalResource(String name)
RuntimeContext
Only the current bundle should be searched for the resource.
getLocalResource
in interface RuntimeContext
getLocalResource
in class DefaultRuntimeContext
name
- the local resource name
ClassLoader.getResource(String)
public Class<?> loadClass(String className) throws ClassNotFoundException
RuntimeContext
loadClass
in interface RuntimeContext
loadClass
in class DefaultRuntimeContext
className
- the class name
ClassNotFoundException
- if no such class were foundClassLoader.loadClass(String)
public org.osgi.framework.Bundle getHostBundle()
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |