org.apache.hivemind.lib.groovy
Class GroovyModuleDescriptorProvider
java.lang.Object
org.apache.hivemind.impl.XmlModuleDescriptorProvider
org.apache.hivemind.lib.groovy.GroovyModuleDescriptorProvider
- All Implemented Interfaces:
- org.apache.hivemind.ModuleDescriptorProvider
public class GroovyModuleDescriptorProvider
- extends org.apache.hivemind.impl.XmlModuleDescriptorProvider
- implements org.apache.hivemind.ModuleDescriptorProvider
This ModuleDescriptorProvider
processes Groovy scripts defining
module descriptors. To all Groovy scripts executed by the provider a variable
processor
will be bound. This variable references the
HiveMind GroovyMarkup builder
.
- Since:
- 1.1
- Author:
- Knut Wannheden
- See Also:
HiveMindBuilder
Fields inherited from class org.apache.hivemind.impl.XmlModuleDescriptorProvider |
HIVE_MODULE_XML |
Constructor Summary |
GroovyModuleDescriptorProvider(org.apache.hivemind.ClassResolver resolver,
java.util.List resources)
Constructs an GroovyModuleDescriptorProvider loading all ModuleDescriptors identified by the
given List of Resource objects. |
GroovyModuleDescriptorProvider(org.apache.hivemind.ClassResolver resolver,
org.apache.hivemind.Resource resource)
Constructs an GroovyModuleDescriptorProvider only loading the ModuleDescriptor identified by
the given Resource . |
Method Summary |
protected org.apache.hivemind.parse.XmlResourceProcessor |
getResourceProcessor(org.apache.hivemind.ClassResolver resolver,
org.apache.hivemind.ErrorHandler handler)
|
Methods inherited from class org.apache.hivemind.impl.XmlModuleDescriptorProvider |
getModuleDescriptors |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hivemind.ModuleDescriptorProvider |
getModuleDescriptors |
GroovyModuleDescriptorProvider
public GroovyModuleDescriptorProvider(org.apache.hivemind.ClassResolver resolver,
org.apache.hivemind.Resource resource)
- Constructs an GroovyModuleDescriptorProvider only loading the ModuleDescriptor identified by
the given
Resource
.
GroovyModuleDescriptorProvider
public GroovyModuleDescriptorProvider(org.apache.hivemind.ClassResolver resolver,
java.util.List resources)
- Constructs an GroovyModuleDescriptorProvider loading all ModuleDescriptors identified by the
given List of
Resource
objects.
getResourceProcessor
protected org.apache.hivemind.parse.XmlResourceProcessor getResourceProcessor(org.apache.hivemind.ClassResolver resolver,
org.apache.hivemind.ErrorHandler handler)
- Overrides:
getResourceProcessor
in class org.apache.hivemind.impl.XmlModuleDescriptorProvider