org.jboss.deployers.spi.deployer.helpers
Interface AnnotationProcessor<A extends Annotation,T>

Type Parameters:
A - the annotation type
T - the output type
All Known Implementing Classes:
AbstractAnnotationProcessor

public interface AnnotationProcessor<A extends Annotation,T>

Annotation processor.

Author:
Ales Justin

Method Summary
 T createMetaData(Object attachment)
          Create metadata attachment.
 T createMetaDataFromClass(Class<?> clazz)
          Create metadata from class.
 Class<A> getAnnotation()
          Get the annotation class.
 Class<T> getOutput()
          Get output class.
 

Method Detail

getAnnotation

Class<A> getAnnotation()
Get the annotation class.

Returns:
the annotation class

getOutput

Class<T> getOutput()
Get output class.

Returns:
the output class

createMetaData

T createMetaData(Object attachment)
Create metadata attachment.

Parameters:
attachment - the previous attachment
Returns:
the new metadata instance or null if cannot be created

createMetaDataFromClass

T createMetaDataFromClass(Class<?> clazz)
Create metadata from class.

Parameters:
clazz - the class containing annotation
Returns:
the new metadata from class or null if cannot be created


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.