|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hivemind.annotations.internal.AnnotatedModuleProcessor
public class AnnotatedModuleProcessor
Does the work for AnnotatedModuleReader
. Processes an
annotated class and registers the defined extension and extension points in a registry
definition.
The construction of extension points and extensions bases on reflective method calls
to an instance of the module class. The module instance is created by a
ModuleInstanceProvider
during registry construction.
Constructor Summary | |
---|---|
AnnotatedModuleProcessor(org.apache.hivemind.definition.RegistryDefinition registryDefinition,
org.apache.hivemind.ClassResolver classResolver,
org.apache.hivemind.ErrorHandler errorHandler)
|
Method Summary | |
---|---|
protected void |
checkMethodModifiers(java.lang.reflect.Method method,
int allowedModifiers,
java.lang.String methodType)
Ensures that an annotated method has only allowed modifiers. |
protected void |
checkModuleClassPrerequisites(java.lang.Class moduleClass)
Ensures that a module class fulfills all prerequisites. |
protected org.apache.hivemind.Location |
createModuleLocation(java.lang.Class moduleClass)
Creates a location pointing at the module class. |
void |
processModule(java.lang.Class moduleClass)
|
void |
processModule(java.lang.Class moduleClass,
java.lang.String moduleId)
Processes a module. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotatedModuleProcessor(org.apache.hivemind.definition.RegistryDefinition registryDefinition, org.apache.hivemind.ClassResolver classResolver, org.apache.hivemind.ErrorHandler errorHandler)
Method Detail |
---|
public void processModule(java.lang.Class moduleClass)
public void processModule(java.lang.Class moduleClass, java.lang.String moduleId)
moduleClass
- protected void checkModuleClassPrerequisites(java.lang.Class moduleClass)
moduleClass
- protected void checkMethodModifiers(java.lang.reflect.Method method, int allowedModifiers, java.lang.String methodType)
method
- the methodallowedModifiers
- allowed modifiers
.methodType
- used in error messages to describe what the method is used forprotected org.apache.hivemind.Location createModuleLocation(java.lang.Class moduleClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |