|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContributionService
Service interface that manages artifacts contributed to a Tuscany runtime.
Method Summary | |
---|---|
void |
addDeploymentComposite(Contribution contribution,
Composite composite)
Adds or updates a deployment composite using a supplied composite ("composite by value" - a data structure, not an existing resource in the domain) to the contribution identified by a supplied contribution URI. |
Contribution |
contribute(java.lang.String contributionURI,
java.net.URL sourceURL,
boolean storeInRepository)
Contribute an artifact to the SCA Domain. |
Contribution |
contribute(java.lang.String contributionURI,
java.net.URL sourceURL,
java.io.InputStream contributionContent)
Contribute an artifact to the SCA Domain. |
Contribution |
contribute(java.lang.String contributionURI,
java.net.URL sourceURL,
java.io.InputStream contributionContent,
ModelResolver modelResolver)
Contribute an artifact to the SCA Domain. |
Contribution |
contribute(java.lang.String contributionURI,
java.net.URL sourceURL,
ModelResolver modelResolver,
boolean storeInRepository)
Contribute an artifact to the SCA Domain. |
Contribution |
getContribution(java.lang.String contribution)
Get the model for an installed contribution |
void |
remove(java.lang.String contribution)
Remove a contribution from the SCA domain |
Method Detail |
---|
Contribution contribute(java.lang.String contributionURI, java.net.URL sourceURL, boolean storeInRepository) throws ContributionException, java.io.IOException
contributionURI
- The URI that is used as the contribution unique ID.sourceURL
- The location of the resource containing the artifactstoreInRepository
- Flag that identifies if you want to copy the
contribution to the repository
ContributionException
- if there was a problem with the contribution
java.io.IOException
- if there was a problem reading the resourceContribution contribute(java.lang.String contributionURI, java.net.URL sourceURL, ModelResolver modelResolver, boolean storeInRepository) throws ContributionException, java.io.IOException
contributionURI
- The URI that is used as the contribution unique ID.sourceURL
- The location of the resource containing the artifactmodelResolver
- The model resolver to use to resolve models in the
scope of this contributionstoreInRepository
- Flag that identifies if you want to copy the
contribution to the repository
ContributionException
- if there was a problem with the contribution
java.io.IOException
- if there was a problem reading the resourceContribution contribute(java.lang.String contributionURI, java.net.URL sourceURL, java.io.InputStream contributionContent) throws ContributionException, java.io.IOException
contributionURI
- The URI that is used as the contribution unique ID.sourceURL
- The location of the resource containing the artifact.
This is used to identify what name should be used when storing
the contribution on the repositorycontributionContent
- A stream containing the resource being
contributed; the stream will not be closed but the read
position after the call is undefined
ContributionException
- if there was a problem with the contribution
java.io.IOException
- if there was a problem reading the streamContribution contribute(java.lang.String contributionURI, java.net.URL sourceURL, java.io.InputStream contributionContent, ModelResolver modelResolver) throws ContributionException, java.io.IOException
contributionURI
- The URI that is used as the contribution unique ID.sourceURL
- The location of the resource containing the artifact.
This is used to identify what name should be used when storing
the contribution on the repositorymodelResolver
- The model resolver to use to resolve models in the
scope of this contributioncontributionContent
- A stream containing the resource being
contributed; the stream will not be closed but the read
position after the call is undefined
ContributionException
- if there was a problem with the contribution
java.io.IOException
- if there was a problem reading the streamContribution getContribution(java.lang.String contribution)
contribution
- The URI of an installed contribution
void addDeploymentComposite(Contribution contribution, Composite composite) throws ContributionException
contribution
- The contribution to wherecomposite
-
ContributionException
void remove(java.lang.String contribution) throws ContributionException
contribution
- The URI of the contribution
DeploymentException
ContributionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |