Evaluating Software Design Patterns
— the "Gang of Four" patterns implemented in Java 6

dk.rode.thesis.meta.reflect
Annotation Type Executor


@Inherited
@Documented
@Retention(value=RUNTIME)
@Target(value={CONSTRUCTOR,METHOD})
public @interface Executor

A method or constructor annotated with the executor annotation indicates that it will be executed reflectively by a given context.

Implementation notes:
The executor annotation can annotate any constructor or method. The context using the annotated members must supply the logic to support the parameter types.

The annotation is inherited! This means that if defined in a super-class, a sub-class overriding the annotated member can be used as an observer if an instance of the sub-class is used. Inheritance is only on from super-class to sub-class, not for implemented interfaces.

Author:
Gunni Rode / rode.dk
See Also:
ExecutorProcessor

Optional Element Summary
 Class<?> value
          Returns the context to which the annotated member is associated.
 

value

public abstract Class<?> value
Returns the context to which the annotated member is associated.

The context is used to discriminate between the contexts using the annotated members, for example different context annotating members in the same class for different purposes.

Returns:
The context; default Object (any).
Default:
java.lang.Object.class

Gunni Rode / rode.dk

Feel free to use and/or modify the Java 6 source code developed for this thesis AT YOUR OWN RISK, but note that the source code comes WITHOUT ANY — and I do mean WITHOUT ANY — form of warranty WHAT SO EVER!

The original thesis and source code are available at rode.dk/thesis.