|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.sca.contribution.xml.ContributionMetadataDocumentProcessor
public class ContributionMetadataDocumentProcessor
URLArtifactProcessor that handles sca-contribution.xml files.
Constructor Summary | |
---|---|
ContributionMetadataDocumentProcessor(ModelFactoryExtensionPoint modelFactories,
StAXArtifactProcessor staxProcessor,
Monitor monitor)
|
|
ContributionMetadataDocumentProcessor(javax.xml.stream.XMLInputFactory inputFactory,
StAXArtifactProcessor staxProcessor,
Monitor monitor)
|
Method Summary | |
---|---|
java.lang.String |
getArtifactType()
Returns the type of artifact handled by this artifact processor. |
java.lang.Class<ContributionMetadata> |
getModelType()
Returns the type of model handled by this artifact processor. |
ContributionMetadata |
read(java.net.URL contributionURL,
java.net.URI uri,
java.net.URL url)
Reads a model from a URL. |
void |
resolve(ContributionMetadata contribution,
ModelResolver resolver)
Resolve references from this model to other models. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContributionMetadataDocumentProcessor(javax.xml.stream.XMLInputFactory inputFactory, StAXArtifactProcessor staxProcessor, Monitor monitor)
public ContributionMetadataDocumentProcessor(ModelFactoryExtensionPoint modelFactories, StAXArtifactProcessor staxProcessor, Monitor monitor)
Method Detail |
---|
public java.lang.String getArtifactType()
URLArtifactProcessor
getArtifactType
in interface URLArtifactProcessor<ContributionMetadata>
public java.lang.Class<ContributionMetadata> getModelType()
ArtifactProcessor
getModelType
in interface ArtifactProcessor<ContributionMetadata>
public ContributionMetadata read(java.net.URL contributionURL, java.net.URI uri, java.net.URL url) throws ContributionReadException
URLArtifactProcessor
read
in interface URLArtifactProcessor<ContributionMetadata>
contributionURL
- Contribution location URLuri
- Artifact URIurl
- Artifact location URL
ContributionReadException
public void resolve(ContributionMetadata contribution, ModelResolver resolver) throws ContributionResolveException
ArtifactProcessor
resolve
in interface ArtifactProcessor<ContributionMetadata>
contribution
- The model to resolveresolver
- The resolver to use to resolve referenced models
ContributionResolveException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |