|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.rode.thesis.meta.reflect.ExecutorProcessor
public class ExecutorProcessor
The executor processor provides methods to retrieve methods
and/or constructors annotated with the Executor
annotation.
Executor
Constructor Summary | |
---|---|
private |
ExecutorProcessor()
Private off-limit constructor. |
Method Summary | |
---|---|
static List<Constructor<?>> |
getConstructorExecutors(Class<?> clazz,
Class<?> context,
Class<?>... parameterTypes)
Returns all declared constructors annotated with the Executor annotation
in the class supplied as clazz , where the formal parameter types
match parameterTypes ignoring primitives, and where the
context is assignable from context . |
static List<Method> |
getMethodExecutors(Class<?> clazz,
Class<?> context,
Class<?>... parameterTypes)
Returns all declared methods annotated with the Executor annotation
in the class supplied as clazz , where the formal parameter types
match parameterTypes ignoring primitives, and where the
context is assignable from context . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private ExecutorProcessor()
Method Detail |
---|
public static final List<Constructor<?>> getConstructorExecutors(Class<?> clazz, Class<?> context, Class<?>... parameterTypes)
Executor
annotation
in the class supplied as clazz
, where the formal parameter types
match parameterTypes
ignoring primitives, and where the
context
is assignable from context
.
clazz
- The class; cannot be null.context
- The context; cannot be null.parameterTypes
- The formal parameter types for the methods; can be empty.
clazz
, if
any; never null, but may be empty.
NullPointerException
- If clazz
or context
are null.public static final List<Method> getMethodExecutors(Class<?> clazz, Class<?> context, Class<?>... parameterTypes)
Executor
annotation
in the class supplied as clazz
, where the formal parameter types
match parameterTypes
ignoring primitives, and where the
context
is assignable from context
.
clazz
- The class; cannot be null.context
- The context; cannot be null.parameterTypes
- The formal parameter types for the methods; can be empty.
clazz
, if
any; never null, but may be empty.
NullPointerException
- If clazz
or context
are null.
|
Gunni Rode / rode.dk | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |