|
||||||||||
| 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 SCA4J domain.
| Method Summary | ||
|---|---|---|
java.net.URI |
contribute(ContributionSource source)
Contribute an artifact to the SCA Domain. |
|
java.util.List<java.net.URI> |
contribute(java.util.List<ContributionSource> sources)
Contribute a collection of artifacts to a domain. |
|
boolean |
exists(java.net.URI uri)
Returns true if a contribution for the given URI exists. |
|
long |
getContributionTimestamp(java.net.URI uri)
Returns the contribution timestamp. |
|
java.util.List<Deployable> |
getDeployables(java.net.URI uri)
Returns a list of deployables in a contribution. |
|
void |
remove(java.net.URI uri)
Remove a contribution from the SCA domain. |
|
|
resolve(java.net.URI uri,
java.lang.Class<T> definitionType,
javax.xml.namespace.QName name)
Resolve an artifact by QName within the contribution |
|
java.net.URL |
resolve(java.net.URI uri,
java.lang.String namespace,
java.net.URI locationUri,
java.net.URI baseURI)
Resolve the reference to an artifact by the location URI within the given contribution. |
|
void |
update(ContributionSource source)
Updates a previously contributed artifact if its timestamp and checksum have changed. |
|
| Method Detail |
|---|
java.net.URI contribute(ContributionSource source)
throws ContributionException
source - the contribution source
ContributionException - if there was a problem with the contribution
java.util.List<java.net.URI> contribute(java.util.List<ContributionSource> sources)
throws ContributionException
sources - the artifacts to contribute
ContributionException - if an error is encountered contributing the artifacts
void update(ContributionSource source)
throws ContributionException
source - the contribution source
ContributionException - if an error occurs during the update procecedure, for example, a previuous
contribution is not foundboolean exists(java.net.URI uri)
uri - the contribution URI
long getContributionTimestamp(java.net.URI uri)
uri - the contribution URI
java.util.List<Deployable> getDeployables(java.net.URI uri)
throws ContributionException
uri - the URI of the contribution to search
ContributionNotFoundException - if a contribution corresponding to the URI is not found
ContributionException
void remove(java.net.URI uri)
throws ContributionException
uri - The URI of the contribution
ContributionException - if there was a problem with the contribution
<T> T resolve(java.net.URI uri,
java.lang.Class<T> definitionType,
javax.xml.namespace.QName name)
T - The java type of the artifact such as javax.wsdl.Definitionuri - The URI of the contributiondefinitionType - The java type of the artifactname - The name of the artifact
java.net.URL resolve(java.net.URI uri,
java.lang.String namespace,
java.net.URI locationUri,
java.net.URI baseURI)
uri - The URI of the contributionnamespace - The namespace of the artifact. This is for validation purpose. If the namespace is null, then
no check will be performed.locationUri - The location URIbaseURI - The URI of the base artifact where the reference is declared
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||