org.reflext.api.introspection
Class AnnotationTarget<T,A>

java.lang.Object
  extended by org.reflext.api.introspection.AnnotationTarget<T,A>
Type Parameters:
T - the target type
A - the annotation type

public class AnnotationTarget<T,A>
extends java.lang.Object

The target of an annotation.

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
AnnotationTarget(T target, A annotation)
          Create a new annotated target.
 
Method Summary
 A getAnnotation()
           
 T getTarget()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationTarget

public AnnotationTarget(T target,
                        A annotation)
                 throws java.lang.NullPointerException
Create a new annotated target.

Parameters:
target - the target
annotation - the annotation
Throws:
java.lang.NullPointerException - if any argument is null
Method Detail

getTarget

public T getTarget()

getAnnotation

public A getAnnotation()


Copyright © 2010 eXo Platform SAS. All Rights Reserved.