|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl
public class ContributionServiceImpl
Service interface that manages artifacts contributed to a Tuscany runtime.
Constructor Summary | |
---|---|
ContributionServiceImpl(ContributionRepository repository,
PackageProcessor packageProcessor,
URLArtifactProcessor documentProcessor,
StAXArtifactProcessor staxProcessor,
ExtensibleContributionListener contributionListener,
ModelResolver policyDefinitionsResolver,
ModelResolverExtensionPoint modelResolvers,
ModelFactoryExtensionPoint modelFactories,
AssemblyFactory assemblyFactory,
ContributionFactory contributionFactory,
javax.xml.stream.XMLInputFactory xmlFactory,
java.util.List<SCADefinitions> policyDefinitions,
Monitor monitor)
|
Method Summary | |
---|---|
void |
addDeploymentComposite(Contribution contribution,
Composite composite)
Add a composite model to the contribution |
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 input)
Contribute an artifact to the SCA Domain. |
Contribution |
contribute(java.lang.String contributionURI,
java.net.URL sourceURL,
java.io.InputStream input,
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 uri)
Get the model for an installed contribution |
void |
remove(java.lang.String uri)
Remove a contribution and notify listener that contribution was removed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContributionServiceImpl(ContributionRepository repository, PackageProcessor packageProcessor, URLArtifactProcessor documentProcessor, StAXArtifactProcessor staxProcessor, ExtensibleContributionListener contributionListener, ModelResolver policyDefinitionsResolver, ModelResolverExtensionPoint modelResolvers, ModelFactoryExtensionPoint modelFactories, AssemblyFactory assemblyFactory, ContributionFactory contributionFactory, javax.xml.stream.XMLInputFactory xmlFactory, java.util.List<SCADefinitions> policyDefinitions, Monitor monitor)
Method Detail |
---|
public Contribution contribute(java.lang.String contributionURI, java.net.URL sourceURL, boolean storeInRepository) throws ContributionException, java.io.IOException
ContributionService
contribute
in interface ContributionService
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 resourcepublic Contribution contribute(java.lang.String contributionURI, java.net.URL sourceURL, ModelResolver modelResolver, boolean storeInRepository) throws ContributionException, java.io.IOException
ContributionService
contribute
in interface ContributionService
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 resourcepublic Contribution contribute(java.lang.String contributionURI, java.net.URL sourceURL, java.io.InputStream input) throws ContributionException, java.io.IOException
ContributionService
contribute
in interface ContributionService
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 repositoryinput
- 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 streampublic Contribution contribute(java.lang.String contributionURI, java.net.URL sourceURL, java.io.InputStream input, ModelResolver modelResolver) throws ContributionException, java.io.IOException
ContributionService
contribute
in interface ContributionService
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 repositoryinput
- A stream containing the resource being
contributed; the stream will not be closed but the read
position after the call is undefinedmodelResolver
- The model resolver to use to resolve models in the
scope of this contribution
ContributionException
- if there was a problem with the contribution
java.io.IOException
- if there was a problem reading the streampublic Contribution getContribution(java.lang.String uri)
ContributionService
getContribution
in interface ContributionService
uri
- The URI of an installed contribution
public void remove(java.lang.String uri) throws ContributionException
remove
in interface ContributionService
uri
- The URI of the contribution
ContributionException
public void addDeploymentComposite(Contribution contribution, Composite composite) throws ContributionException
addDeploymentComposite
in interface ContributionService
contribution
- The contribution to where
ContributionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |