|
Forge - Parent 1.2.2-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.forge.bus.util.Annotations
public class Annotations
Utility class for common @Annotation
operations.
Constructor Summary | |
---|---|
Annotations()
|
Method Summary | ||
---|---|---|
static
|
getAnnotation(Annotation a,
Class<A> type)
Inspect annotation a for a specific type of annotation. |
|
static
|
getAnnotation(Class<?> c,
Class<A> type)
Inspect class c for a specific type of annotation. |
|
static
|
getAnnotation(Method m,
Class<A> type)
Inspect method m for a specific type of annotation. |
|
static boolean |
isAnnotationPresent(Class<?> c,
Class<? extends Annotation> type)
Discover if a Class c has been annotated with type. |
|
static boolean |
isAnnotationPresent(Method m,
Class<? extends Annotation> type)
Discover if a Method m has been annotated with type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Annotations()
Method Detail |
---|
public static boolean isAnnotationPresent(Method m, Class<? extends Annotation> type)
Stereotype
.
m
- The method to inspect.type
- The targeted annotation class
public static boolean isAnnotationPresent(Class<?> c, Class<? extends Annotation> type)
Stereotype
.
c
- The class to inspect.type
- The targeted annotation class
public static <A extends Annotation> A getAnnotation(Method m, Class<A> type)
Stereotype
.
m
- The method to inspect.type
- The targeted annotation class
public static <A extends Annotation> A getAnnotation(Annotation a, Class<A> type)
Stereotype
.
m
- The method to inspect.type
- The targeted annotation class
public static <A extends Annotation> A getAnnotation(Class<?> c, Class<A> type)
Stereotype
.
c
- The class to inspect.type
- The targeted annotation class
|
Forge - Parent 1.2.2-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |