|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Loader
System service for loading physical artifacts that represent SCDL configurations and creating the model objects that represent them.
Method Summary | ||
---|---|---|
|
load(CompositeComponent parent,
URL url,
Class<MO> type,
DeploymentContext deploymentContext)
Load a model object from a specified location. |
|
ModelObject |
load(CompositeComponent parent,
javax.xml.stream.XMLStreamReader reader,
DeploymentContext deploymentContext)
Parse the supplied XML stream, dispatching to the appropriate registered loader for each element encountered in the stream. |
|
|
loadComponentType(CompositeComponent parent,
I implementation,
DeploymentContext deploymentContext)
Load the component type definition for a given implementation. |
Method Detail |
---|
ModelObject load(CompositeComponent parent, javax.xml.stream.XMLStreamReader reader, DeploymentContext deploymentContext) throws javax.xml.stream.XMLStreamException, LoaderException
parent
- reader
- the XML stream to parsedeploymentContext
- the current deployment context
javax.xml.stream.XMLStreamException
- if there was a problem reading the stream
LoaderException
<MO extends ModelObject> MO load(CompositeComponent parent, URL url, Class<MO> type, DeploymentContext deploymentContext) throws LoaderException
parent
- url
- the location of an XML document to be loadedtype
- the type of ModelObject that is expected to be in the documentdeploymentContext
- the current deployment context
LoaderException
- if there was a problem loading the document<I extends Implementation<?>> void loadComponentType(CompositeComponent parent, I implementation, DeploymentContext deploymentContext) throws LoaderException
parent
- the parent compositeimplementation
- the implementation whose component type should be loadeddeploymentContext
- the current deployment context
LoaderException
- if there was a problem loading the component type definition
|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |