com.pietschy.command.annotation.impl
Interface AnnotationProcessor<T extends java.lang.annotation.Annotation>

All Known Implementing Classes:
AbstractAnnotationProcessor, ActionCommandProcessor, SwingWorkerCommandProcessor

public interface AnnotationProcessor<T extends java.lang.annotation.Annotation>

Used by DefaultAnnotationSupport to create command instances from annotated methods.


Method Summary
 Command createCommand(java.lang.Object target, java.lang.reflect.Method method)
          Invoked to create the command defined by the annotations of the class defined by getAnnotation().
 java.lang.Class<T> getAnnotation()
          Gets the annotation class handled by this processor.
 

Method Detail

getAnnotation

java.lang.Class<T> getAnnotation()
Gets the annotation class handled by this processor.

Returns:
the annotation class handled by this processor.

createCommand

Command createCommand(java.lang.Object target,
                      java.lang.reflect.Method method)
Invoked to create the command defined by the annotations of the class defined by getAnnotation().

Parameters:
target - the target object.
method - the target method with the annotation.
Returns:
a new command instance that invokes the specified method on the specified target object.


Copyright © 2006 - 2007 Andrew Pietsch