|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.hivemind.impl.XmlModuleDescriptorProvider
Implementation of the ModuleDescriptorProvider interface which uses the
DescriptorParser to provide module descriptors defined in XML.
The module descriptors are loaded from files or resources on the classpath.
| Field Summary | |
static java.lang.String |
HIVE_MODULE_XML
The default path, within a JAR or the classpath, to the XML HiveMind module deployment descriptor: META-INF/hivemodule.xml. |
| Constructor Summary | |
XmlModuleDescriptorProvider(ClassResolver resolver)
Convenience constructor. |
|
XmlModuleDescriptorProvider(ClassResolver resolver,
java.util.List resources)
Constructs an XmlModuleDescriptorProvider loading all ModuleDescriptor identified by the given List of Resource objects. |
|
XmlModuleDescriptorProvider(ClassResolver resolver,
Resource resource)
Constructs an XmlModuleDescriptorProvider only loading the ModuleDescriptor identified by the given Resource. |
|
XmlModuleDescriptorProvider(ClassResolver resolver,
java.lang.String resourcePath)
Loads all XML module descriptors found on the classpath (using the given ClassResolver. |
|
| Method Summary | |
java.util.List |
getModuleDescriptors(ErrorHandler handler)
Returns a List of module descriptors. |
protected XmlResourceProcessor |
getResourceProcessor(ClassResolver resolver,
ErrorHandler handler)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String HIVE_MODULE_XML
META-INF/hivemodule.xml. Use this constant with the
XmlModuleDescriptorProvider(ClassResolver, String) constructor.
| Constructor Detail |
public XmlModuleDescriptorProvider(ClassResolver resolver)
XmlModuleDescriptorProvider(ClassResolver, String)with HIVE_MODULE_XML as
the second argument.
public XmlModuleDescriptorProvider(ClassResolver resolver,
java.lang.String resourcePath)
ClassResolver. Only module descriptors matching the specified
path are loaded. Use the HIVE_MODULE_XML constant to load
all descriptors in the default location.
public XmlModuleDescriptorProvider(ClassResolver resolver,
Resource resource)
Resource.
public XmlModuleDescriptorProvider(ClassResolver resolver,
java.util.List resources)
Resource objects.
| Method Detail |
public java.util.List getModuleDescriptors(ErrorHandler handler)
ModuleDescriptorProvidermodule descriptors. Any
referenced submodules must also be included in this List.
getModuleDescriptors in interface ModuleDescriptorProvider
protected XmlResourceProcessor getResourceProcessor(ClassResolver resolver,
ErrorHandler handler)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||