public interface ArtifactLocator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright information for this class/interface
|
Modifier and Type | Method and Description |
---|---|
LocatorDefinition |
getLocatorDefinition()
Returns the configuration of this Locator, as assembled by the
environment.
|
void |
initialize(java.util.Map bootstrapContext,
LocatorDefinition definition)
Configure thyself for use given the bootstrapContext (a Map of environment-
specific context) and one's configuration information from the
LocatorDefinition . |
java.util.Collection |
query(java.lang.String mime,
java.lang.String targetNamespace)
Query the locator for any artifacts matching the specified mime-type and
target namespace.
|
java.util.Collection |
queryTargetNamespaces(java.lang.String mime)
Query the locator for all target namespaces defined by artifacts of the
specified mime-type in the path associated with this locator instance.
|
static final java.lang.String COPYRIGHT
void initialize(java.util.Map bootstrapContext, LocatorDefinition definition)
LocatorDefinition
. When this method is complete, the
implementing ArtifactLocator is prepared to process any query.bootstrapContext
- Map of environment-specific context.definition
- The configuation assmbled from the system environment.java.util.Collection query(java.lang.String mime, java.lang.String targetNamespace)
mime
- The mime-type of the artifacts being locatedtargetNamespace
- The target namespace of the artifacts being locatedjava.util.Collection queryTargetNamespaces(java.lang.String mime)
mime
- The mime-type of the artifacts being locatedLocatorDefinition getLocatorDefinition()