Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 - 2007 Andrew Pietsch