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

All Superinterfaces:
ArtifactProcessor<M>
All Known Implementing Classes:
ExtensibleURLArtifactProcessor

public interface URLArtifactProcessor<M>
extends ArtifactProcessor<M>

An artifact processor that can read models from an InputStream.

Version:
$Rev: 539692 $ $Date: 2007-05-19 07:06:18 +0100 (Sat, 19 May 2007) $

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 an input source.
 
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 an input source. Examples of input sources are: a URI, a DOM node, an XML reader.

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