org.apache.tuscany.sca.contribution.processor
Interface URLArtifactProcessor<M>

All Superinterfaces:
ArtifactProcessor<M>
All Known Implementing Classes:
BPELDocumentProcessor, ComponentTypeDocumentProcessor, CompositeDocumentProcessor, ConstrainingTypeDocumentProcessor, ContributionContentProcessor, ContributionGeneratedMetadataDocumentProcessor, ContributionInfoProcessor, ContributionMetadataDocumentProcessor, ExtensibleURLArtifactProcessor, GroovyArtifactProcessor, SCADefinitionsDocumentProcessor, WorkspaceDocumentProcessor, WSDLDocumentProcessor, XSDDocumentProcessor

public interface URLArtifactProcessor<M>
extends ArtifactProcessor<M>

An artifact processor that can read models from a URL.


Method Summary
 java.lang.String getArtifactType()
          Returns the type of artifact handled by this artifact processor.
 M read(java.net.URL contributionURL, java.net.URI artifactURI, java.net.URL artifactURL)
          Reads a model from a URL.
 
Methods inherited from interface org.apache.tuscany.sca.contribution.processor.ArtifactProcessor
getModelType, resolve
 

Method Detail

read

M read(java.net.URL contributionURL,
       java.net.URI artifactURI,
       java.net.URL artifactURL)
       throws ContributionReadException
Reads a model from a URL.

Parameters:
contributionURL - Contribution location URL
artifactURI - Artifact URI
artifactURL - Artifact location URL
Returns:
A model representation of the input.
Throws:
ContributionReadException

getArtifactType

java.lang.String getArtifactType()
Returns the type of artifact handled by this artifact processor.

Returns:
The type of artifact handled by this artifact processor