|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ArtifactLoader
This class is the interface (spi) for the basic functionality provided by Artifactloader.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
static ArtifactLoader |
INSTANCE
Provides access to the implementation of the artifact loader. |
Method Summary | |
---|---|
java.util.Collection |
queryTNSs(java.lang.String artifactType,
java.lang.Object scope)
Returns a Collection of target namespaces as Strings that are mapped to the artifact type. |
java.util.Collection |
queryURLs(java.lang.String artifactType,
java.lang.String targetNamespace,
java.lang.Object scope)
Returns a Collection of URLs that are mapped to the artifact type and contribute to the specified target namespace. |
java.util.Collection |
queryURLsSingleScope(java.lang.String artifactType,
java.lang.String targetNamespace,
java.lang.Object scope)
Return a Collection of URLs that are mapped to the artifact type and contribute to the specified target namespace. |
Field Detail |
---|
static final java.lang.String COPYRIGHT
static final ArtifactLoader INSTANCE
Method Detail |
---|
java.util.Collection queryURLs(java.lang.String artifactType, java.lang.String targetNamespace, java.lang.Object scope)
select url from artifactType where targetNamespace="targetNamespace"
select url from artifactType where targetNamespace="null"
select url from artifactType where targetNamespace="*"
In the WBI runtime, the scope indicates the class loader to run the query in. The parameter can have three potential values, null, an object that is an instance of ClassLoader, or an object that is not an instance of ClassLoader. In the case of null, the scope is set to the current class loader. If a non-class loader instance is passed, that object's class loader is used to define the scope. If a class loader instance is passed, that object is used to define the scope.
artifactType
- Specifies one of the set of possible artifact
types supported by the artifact loader (e.g. xsd, wsdl, rol, rel, reli,
sel, brg, etc).targetNamespace
- Specifies the target namespace to use for the
query. The string "null" represents the null target namespace, and the
string "*" represents all target namespaces. In the case of SCDL artifact
types, this parameter specifies the name of the SCDL artifacts.scope
- The scope to begin the query for the artifact. Null
indicates the current scope. An instance of ClassLoader indicates that
class loader's scope. An instance that is not of type ClassLoader, is
used to obtain its class loader and that class loader is used to
determine the scope.
java.util.Collection queryURLsSingleScope(java.lang.String artifactType, java.lang.String targetNamespace, java.lang.Object scope)
"*"
can be used to
indicate all, or the value can be "null"
which
indicates the null target namespace. This query is semantically
equivalent to the following SQL queries:
select url from artifactType where targetNamespace="targetNamespace"
select url from artifactType where targetNamespace="null"
select url from artifactType where targetNamespace="*"
In contrast to queryURLs
, if no artifacts of the
specified type are located in the defined scope (or the default
scope if null was specified), the method immedately returns an
empty collection.
artifactType
- Specifies one of the set of possible artifact
types supported by the artifact loader (e.g. xsd, wsdl, rol, rel, reli,
sel, brg, etc).targetNamespace
- Specifies the target namespace to use for the
query. "null" is the null target namespace, and "*" for all target
namespaces. In the case of SCDL artifact types, this parameter specifies
the name of the SCDL artifacts.scope
- The scope to begin the query for the artifact. The
value null
indicates the current scope.
java.util.Collection queryTNSs(java.lang.String artifactType, java.lang.Object scope)
select targetNamespace from artifactType
In the case of SCDL artifact types, this query returns a Collection of names of the found SCDL artifacts.
artifactType
- Specifies one of the set of possible artifact
types supported by the artifact loader (e.g. xsd, wsdl, rol, rel, reli,
sel, brg, etc).scope
- The scope to begin the query for the artifact. Null
indicates the current scope. An instance of ClassLoader indicates that
class loader's scope. An instance that is not of type ClassLoader, is
used to obtain its class loader and that class loader is used to
determine the scope.
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |