public interface MetaDataStore
| Modifier and Type | Method and Description |
|---|---|
<S extends Symbol,V> |
find(java.lang.Class<V> type,
S symbol)
Finds a resource element by its symbol against the entire domain symbol space.
|
Contribution |
find(java.net.URI uri)
Returns the contribution for the given URI.
|
<S extends Symbol,V> |
find(java.net.URI uri,
java.lang.Class<V> type,
S symbol)
Finds a resource element by its symbol against the given contribution uri.
|
java.util.Set<Contribution> |
getContributions()
Returns the installed contributions in the domain.
|
void |
remove(java.net.URI uri)
Removes the contribution metadata.
|
<V> java.util.List<ResourceElement<?,V>> |
resolve(java.net.URI uri,
java.lang.Class<V> type)
Resolves resource elements for a given type that are visible to the contribution.
|
<S extends Symbol,V> |
resolve(java.net.URI uri,
java.lang.Class<V> type,
S symbol,
IntrospectionContext context)
Resolves a resource element by its symbol against the given contribution uri.
|
java.util.List<Contribution> |
resolve(java.net.URI uri,
Import imprt)
Resolves an import or returns an empty list if it cannot be satisfied.
|
java.util.Set<Contribution> |
resolveCapabilities(Contribution contribution)
Transitively resolves the extensions that provide capabilities required by the given contribution.
|
java.util.Set<Contribution> |
resolveCapability(java.lang.String capability)
Transitively resolves the extensions that provide the given capability.
|
java.util.List<ContributionWire<?,?>> |
resolveContributionWires(java.net.URI uri,
Import imprt)
Resolves an import to a matching export and returns the associated ContributionWire.
|
java.util.Set<Contribution> |
resolveDependentContributions(java.net.URI uri)
Resolves contributions that import the contribution represented by the given URI.
|
java.util.List<Contribution> |
resolveExtensionPoints(java.lang.String name)
Resolves a contribution that provides an extension point.
|
java.util.List<Contribution> |
resolveExtensionProviders(java.lang.String name)
Resolves the contributions that extend an extension point.
|
void |
store(Contribution contribution)
Stores the contribution metadata
|
java.util.Set<Contribution> getContributions()
void store(Contribution contribution) throws org.fabric3.api.host.Fabric3Exception
contribution - the contribution metadataorg.fabric3.api.host.Fabric3Exception - if an error storing the metadata occursvoid remove(java.net.URI uri)
uri - the contribution uriContribution find(java.net.URI uri)
uri - the contribution URI<S extends Symbol,V> ResourceElement<S,V> find(java.lang.Class<V> type, S symbol)
type - the class representing the resourcesymbol - the symbol used to represent the resource element.<S extends Symbol,V> ResourceElement<S,V> find(java.net.URI uri, java.lang.Class<V> type, S symbol) throws org.fabric3.api.host.Fabric3Exception
uri - the contribution URI to resolve againsttype - the class representing the resourcesymbol - the symbol used to represent the resource element.org.fabric3.api.host.Fabric3Exception - if an error occurs during resolution<S extends Symbol,V> ResourceElement<S,V> resolve(java.net.URI uri, java.lang.Class<V> type, S symbol, IntrospectionContext context) throws org.fabric3.api.host.Fabric3Exception
uri - the contribution URI to resolve againsttype - the class representing the resourcesymbol - the symbol used to represent the resource element.context - the context to which validation errors and warnings are reportedorg.fabric3.api.host.Fabric3Exception - if an error occurs during resolution<V> java.util.List<ResourceElement<?,V>> resolve(java.net.URI uri, java.lang.Class<V> type) throws org.fabric3.api.host.Fabric3Exception
uri - the contribution to searchtype - the resource element typeorg.fabric3.api.host.Fabric3Exception - if there is an error resolving the resource elementsjava.util.List<Contribution> resolve(java.net.URI uri, Import imprt)
uri - the importing contribution URIimprt - the importjava.util.List<ContributionWire<?,?>> resolveContributionWires(java.net.URI uri, Import imprt) throws org.fabric3.api.host.Fabric3Exception
uri - the importing contribution URIimprt - the import to resolve @return a ContributionWire or nullorg.fabric3.api.host.Fabric3Exceptionjava.util.Set<Contribution> resolveDependentContributions(java.net.URI uri)
uri - the contribution URIjava.util.List<Contribution> resolveExtensionProviders(java.lang.String name)
name - the extension point namejava.util.List<Contribution> resolveExtensionPoints(java.lang.String name)
name - the extension point namejava.util.Set<Contribution> resolveCapabilities(Contribution contribution)
contribution - the contributionjava.util.Set<Contribution> resolveCapability(java.lang.String capability)
capability - the capability