|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 RuntimeContextgetBundle in class DefaultRuntimeContextpublic URL getResource(String name)
RuntimeContext
getResource in interface RuntimeContextgetResource in class DefaultRuntimeContextname - the resource name
ClassLoader.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 name
ClassLoader.getResource(String)
public Class<?> loadClass(String className)
throws ClassNotFoundException
RuntimeContext
loadClass in interface RuntimeContextloadClass in class DefaultRuntimeContextclassName - the class name
ClassNotFoundException - if no such class were foundClassLoader.loadClass(String)public org.osgi.framework.Bundle getHostBundle()
|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||