|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tuscany.sca.contribution.processor.ExtensiblePackageProcessor
public class ExtensiblePackageProcessor
Implementation of an extensible package processor. Takes a package processor extension point and delegates to the proper package processor from the extension point based on the package's content type.
| Constructor Summary | |
|---|---|
ExtensiblePackageProcessor(PackageProcessorExtensionPoint processors,
TypeDescriber packageTypeDescriber,
Monitor monitor)
|
|
| Method Summary | |
|---|---|
protected void |
error(java.lang.String message,
java.lang.Object model,
java.lang.Object... messageParameters)
Marshals errors into the monitor |
java.util.List<java.net.URI> |
getArtifacts(java.net.URL packageSourceURL,
java.io.InputStream inputStream)
Returns a list of artifacts in the contribution. |
java.net.URL |
getArtifactURL(java.net.URL packageSourceURL,
java.net.URI artifact)
Return the URL for an artifact in the package. |
java.lang.String |
getPackageType()
Returns the type of package supported by this package processor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtensiblePackageProcessor(PackageProcessorExtensionPoint processors,
TypeDescriber packageTypeDescriber,
Monitor monitor)
| Method Detail |
|---|
protected void error(java.lang.String message,
java.lang.Object model,
java.lang.Object... messageParameters)
problems - message - model -
public java.util.List<java.net.URI> getArtifacts(java.net.URL packageSourceURL,
java.io.InputStream inputStream)
throws ContributionException,
java.io.IOException
PackageProcessor
getArtifacts in interface PackageProcessorpackageSourceURL - Contribution package location URLinputStream - Optional content of the package
ContributionException
java.io.IOException
public java.net.URL getArtifactURL(java.net.URL packageSourceURL,
java.net.URI artifact)
throws java.net.MalformedURLException
PackageProcessor
getArtifactURL in interface PackageProcessorpackageSourceURL - Contribution package location URLartifact - The relative URI for the artifact
java.net.MalformedURLExceptionpublic java.lang.String getPackageType()
PackageProcessor
getPackageType in interface PackageProcessor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||