Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.deployer
Interface DeploymentContext


public interface DeploymentContext

A holder that can be used during the load process to store information that is not part of the logical assembly model. This should be regarded as transient and references to this context should not be stored inside the model. $Rev: 430937 $ $Date: 2006-08-11 18:17:56 -0700 (Fri, 11 Aug 2006) $


Method Summary
 ClassLoader getClassLoader()
          Returns a class loader that can be used to load application resources.
 Object getExtension(String name)
          Return the extension property with the supplied name.
 ScopeContainer getModuleScope()
          Returns the ScopeContainer for the MODULE scope that will be associated with this deployment unit.
 DeploymentContext getParent()
          Returns the parent of this deployment context.
 URL getScdlLocation()
          Returns the location of the SCDL definition being deployed.
 javax.xml.stream.XMLInputFactory getXmlFactory()
          Returns a factory that can be used to obtain an StAX XMLStreamReader.
 void putExtension(String name, Object value)
          Set the value of an extension property.
 

Method Detail

getParent

DeploymentContext getParent()
Returns the parent of this deployment context. Will be null for the context created at the root of a deployment.

Returns:
the parent of this deployment context; may be null

getClassLoader

ClassLoader getClassLoader()
Returns a class loader that can be used to load application resources.

Returns:
a class loader that can be used to load application resources

getXmlFactory

javax.xml.stream.XMLInputFactory getXmlFactory()
Returns a factory that can be used to obtain an StAX XMLStreamReader.

Returns:
a factory that can be used to obtain an StAX XMLStreamReader

getModuleScope

ScopeContainer getModuleScope()
Returns the ScopeContainer for the MODULE scope that will be associated with this deployment unit.

Returns:
the ScopeContainer for the MODULE scope that will be associated with this deployment unit

getScdlLocation

URL getScdlLocation()
Returns the location of the SCDL definition being deployed.

Returns:
the location of the SCDL definition being deployed

getExtension

Object getExtension(String name)
Return the extension property with the supplied name.

Parameters:
name - the name of the property
Returns:
the property value; if null indicates that no property is present

putExtension

void putExtension(String name,
                  Object value)
Set the value of an extension property.

Parameters:
name - the name of the property
value - the property value; if null then the extension property is removed

Apache Tuscany SCA Kernel Sub-Project

-