|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor
public class ExtensibleURLArtifactProcessor
Implementation of an extensible URL artifact processor. Takes a URLArtifactProcessorExtensionPoint and delegates to the proper URLArtifactProcessor by either fileName or fileExtention
| Constructor Summary | |
|---|---|
ExtensibleURLArtifactProcessor(URLArtifactProcessorExtensionPoint processors,
Monitor monitor)
Constructs a new ExtensibleURLArtifactProcessor. |
|
| Method Summary | ||
|---|---|---|
java.lang.String |
getArtifactType()
Returns the type of artifact handled by this artifact processor. |
|
java.lang.Class<java.lang.Object> |
getModelType()
Returns the type of model handled by this artifact processor. |
|
java.lang.Object |
read(java.net.URL contributionURL,
java.net.URI sourceURI,
java.net.URL sourceURL)
Reads a model from a URL. |
|
|
read(java.net.URL contributionURL,
java.net.URI artifactURI,
java.net.URL artifactUrl,
java.lang.Class<M> type)
|
|
void |
resolve(java.lang.Object model,
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 ExtensibleURLArtifactProcessor(URLArtifactProcessorExtensionPoint processors,
Monitor monitor)
processors - | Method Detail |
|---|
public java.lang.Object read(java.net.URL contributionURL,
java.net.URI sourceURI,
java.net.URL sourceURL)
throws ContributionReadException
URLArtifactProcessor
read in interface URLArtifactProcessor<java.lang.Object>contributionURL - Contribution location URLsourceURI - Artifact URIsourceURL - Artifact location URL
ContributionReadException
public void resolve(java.lang.Object model,
ModelResolver resolver)
throws ContributionResolveException
ArtifactProcessor
resolve in interface ArtifactProcessor<java.lang.Object>model - The model to resolveresolver - The resolver to use to resolve referenced models
ContributionResolveException
public <M> M read(java.net.URL contributionURL,
java.net.URI artifactURI,
java.net.URL artifactUrl,
java.lang.Class<M> type)
throws ContributionReadException
ContributionReadExceptionpublic java.lang.String getArtifactType()
URLArtifactProcessor
getArtifactType in interface URLArtifactProcessor<java.lang.Object>public java.lang.Class<java.lang.Object> getModelType()
ArtifactProcessor
getModelType in interface ArtifactProcessor<java.lang.Object>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||