|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gael.drb.impl.DrbFactoryResolver
public abstract class DrbFactoryResolver
Abstract factory resolver. Registered metadata resolvers must identifies the target factory with the format property.
| Constructor Summary | |
|---|---|
DrbFactoryResolver()
|
|
| Method Summary | |
|---|---|
static fr.gael.drb.meta.DrbMetadataResolver |
getMetadataResolver()
|
static void |
registerFactory(String format,
String classpath)
Registers an implementation that handle the specified format. |
static void |
registerMetadata(fr.gael.drb.meta.MetadataResolver metadata)
Deprecated. DrbFactoryResolver no longer support
multiple DrbMetadataResolver's. For
compatibility purpose, this method now is equivalent to
setMetadataResolver(DrbMetadataResolver) that
replaces the current value. This method may be removed in a
successive version. |
static void |
registerSchema(String extension,
String schema_location)
Deprecated. the schema location should now be deduced from the DrbMetadata associated to the items. Calls to this operations now are equivalent to .
This only if the current resolver is the
DrbDefaultMetadataResolver. |
static DrbFactoryImpl |
resolveImpl(DrbNode base_node)
Resolve a specific implementation that handle the specified base node. |
static DrbFactoryImpl |
resolveImpl(String implementation_identifier)
Retrieves an implementation factory denoted by a given implementation identifier. |
static void |
setMetadataResolver(fr.gael.drb.meta.DrbMetadataResolver metadata_resolver)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DrbFactoryResolver()
| Method Detail |
|---|
public static DrbFactoryImpl resolveImpl(String implementation_identifier)
throws NullPointerException
Algorithm: the method looks first in this class internal register of
implementation factories for creating an instance of the requested
DrbFactoryImpl object. If the factory identifier was
no found in the register, the method attempts to load an implementation
factory class that would follow the pattern
fr.gael.drb.impl.<identifier>.<Identifier>Factory,
where <identifier> is the lower cased implementation
identifier annd <Identifier> is the lowerCamlCase form of
the same factory identifier. As an example, for the given "Xml"
identifier, the searched class path would be
fr.gael.drb.impl.xml.XmlFactory.
Note: the implementation identification is not case sensitive so, for example "file", "File" or "fIlE" would match the same implementation.
implementation_identifier - the implementation identifier
NullPointerException - if the provided identifier is null.public static DrbFactoryImpl resolveImpl(DrbNode base_node)
base_node - the specified base node.
public static fr.gael.drb.meta.DrbMetadataResolver getMetadataResolver()
public static void setMetadataResolver(fr.gael.drb.meta.DrbMetadataResolver metadata_resolver)
public static void registerFactory(String format,
String classpath)
format - unique identifier of the factoryclasspath - the classpath of the registered factory
public static void registerSchema(String extension,
String schema_location)
getMetadataResolver().
registerSchemaLocation(extension, schema_location).
This only if the current resolver is the
DrbDefaultMetadataResolver.
extension - unique identifier of the schemaschema_location - the location path of the registered schemaDrbDefaultMetadataResolver.registerSchemaLocation(
String, String)public static void registerMetadata(fr.gael.drb.meta.MetadataResolver metadata)
DrbFactoryResolver no longer support
multiple DrbMetadataResolver's. For
compatibility purpose, this method now is equivalent to
setMetadataResolver(DrbMetadataResolver) that
replaces the current value. This method may be removed in a
successive version.
metadata - a metadata resolver
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||