Nuxeo Enterprise Platform 5.1

org.nuxeo.runtime.jboss.adapter.deployment
Class JBossRuntimeContext

java.lang.Object
  extended by org.nuxeo.runtime.model.impl.DefaultRuntimeContext
      extended by org.nuxeo.runtime.jboss.adapter.deployment.JBossRuntimeContext
All Implemented Interfaces:
RuntimeContext

public class JBossRuntimeContext
extends DefaultRuntimeContext

Author:
Bogdan Stefanescu

Field Summary
 
Fields inherited from class org.nuxeo.runtime.model.impl.DefaultRuntimeContext
deployedFiles, reader, runtime
 
Constructor Summary
JBossRuntimeContext(org.jboss.deployment.DeploymentInfo di)
           
JBossRuntimeContext(RuntimeService runtime, org.jboss.deployment.DeploymentInfo di)
           
 
Method Summary
 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, deploy, deploy, destroy, getBundle, getRuntime, isDeployed, isDeployed, setRuntime, undeploy, undeploy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossRuntimeContext

public JBossRuntimeContext(org.jboss.deployment.DeploymentInfo di)

JBossRuntimeContext

public JBossRuntimeContext(RuntimeService runtime,
                           org.jboss.deployment.DeploymentInfo di)
Method Detail

getResource

public URL getResource(String name)
Description copied from interface: RuntimeContext
Finds a resource having the given name.

Specified by:
getResource in interface RuntimeContext
Overrides:
getResource in class DefaultRuntimeContext
Parameters:
name - the resource name
Returns:
an URL to the resource having that name or null if not was found
See Also:
ClassLoader.getResource(String)

getLocalResource

public URL getLocalResource(String name)
Description copied from interface: RuntimeContext
Finds a local resource having the given name.

Only the current bundle should be searched for the resource.

Specified by:
getLocalResource in interface RuntimeContext
Overrides:
getLocalResource in class DefaultRuntimeContext
Parameters:
name - the local resource name
Returns:
an URL to the resource having that name or null if not was found
See Also:
ClassLoader.getResource(String)

loadClass

public Class loadClass(String className)
                throws ClassNotFoundException
Description copied from interface: RuntimeContext
Loads the class given its name.

Specified by:
loadClass in interface RuntimeContext
Overrides:
loadClass in class DefaultRuntimeContext
Parameters:
className - the class name
Returns:
the class object
Throws:
ClassNotFoundException - if no such class were found
See Also:
ClassLoader.loadClass(String)

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.