|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts2.convention.annotation.AnnotationTools
public class AnnotationTools
This class provides helper methods for dealing with annotations.
| Constructor Summary | |
|---|---|
AnnotationTools()
|
|
| Method Summary | ||
|---|---|---|
static
|
findAnnotation(java.lang.Class<?> klass,
java.lang.Class<T> annotationClass)
Returns the annotation on the given class or the package of the class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationTools()
| Method Detail |
|---|
public static <T extends java.lang.annotation.Annotation> T findAnnotation(java.lang.Class<?> klass,
java.lang.Class<T> annotationClass)
klass - The class to search for the annotation.annotationClass - The Class of the annotation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||