org.apache.hivemind.annotations
Class AnnotatedModuleReader
java.lang.Object
org.apache.hivemind.annotations.AnnotatedModuleReader
public class AnnotatedModuleReader
- extends java.lang.Object
Reads a annotated hivemind module into a RegistryDefinition
. Thus
the defined services configurations and contributions are added to the
registry.
The class delegates the work to AnnotatedModuleProcessor
- Author:
- Achim Huegen
Constructor Summary |
AnnotatedModuleReader(org.apache.hivemind.definition.RegistryDefinition registryDefinition)
|
AnnotatedModuleReader(org.apache.hivemind.definition.RegistryDefinition registryDefinition,
org.apache.hivemind.ClassResolver classResolver,
org.apache.hivemind.ErrorHandler errorHandler)
|
Method Summary |
void |
readModule(java.lang.Class moduleClass)
Reads an annotated module. |
void |
readModule(java.lang.String moduleClassName)
Reads an annotated module specified by its classname. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotatedModuleReader
public AnnotatedModuleReader(org.apache.hivemind.definition.RegistryDefinition registryDefinition)
- Parameters:
registryDefinition
- the registry definition to which the modules are added.
AnnotatedModuleReader
public AnnotatedModuleReader(org.apache.hivemind.definition.RegistryDefinition registryDefinition,
org.apache.hivemind.ClassResolver classResolver,
org.apache.hivemind.ErrorHandler errorHandler)
- Parameters:
registryDefinition
- the registry definition to which the modules are added.classResolver
- the ClassResolver
used to resolve all classes referenced from
elements inside this module.errorHandler
- errorHandler used for handling recoverable errors
readModule
public void readModule(java.lang.String moduleClassName)
- Reads an annotated module specified by its classname. The module must have a no
argument constructor.
- Parameters:
moduleClassName
- class name of the module
readModule
public void readModule(java.lang.Class moduleClass)
- Reads an annotated module.
- Parameters:
moduleClass
- class of the module
Copyright © 2006-2007 Apache Software Foundation. All Rights Reserved.