MethodAnno - Annotation class used on methodParamAnno - Annotation class used on method parameterpublic class AnnotationMethodScanner<MethodAnno extends java.lang.Class<? extends java.lang.annotation.Annotation>,ParamAnno extends java.lang.Class<? extends java.lang.annotation.Annotation>>
extends java.lang.Object
Class for Annotation and return result in an inner Multimap that you can cache.| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER |
private java.lang.Class<? extends java.lang.annotation.Annotation> |
methodAnnotationClass |
private java.lang.Class<? extends java.lang.annotation.Annotation> |
paramAnnotationClass |
| Modifier | Constructor and Description |
|---|---|
private |
AnnotationMethodScanner(java.lang.Class<? extends java.lang.annotation.Annotation> methodAnnotationClass,
java.lang.Class<? extends java.lang.annotation.Annotation> paramAnnotationClass)
Use
of(Class, Class) instead. |
| Modifier and Type | Method and Description |
|---|---|
(package private) static java.util.Map<java.lang.String,java.lang.Object> |
getAnnotationAttributes(java.lang.annotation.Annotation annotation) |
(package private) static java.lang.annotation.Annotation[] |
getAnnotationFromParams(java.lang.reflect.Method method,
java.lang.Class<? extends java.lang.annotation.Annotation> paramAnnotationClass) |
static <M extends java.lang.Class<? extends java.lang.annotation.Annotation>,P extends java.lang.Class<? extends java.lang.annotation.Annotation>> |
of(M methodAnnotationClass,
P paramAnnotationClass)
Create an
AnnotationMethodScanner by capturing Annotation class annotated on
Method and on Parameter. |
<M extends java.lang.Class<? extends java.lang.annotation.Annotation>,P extends java.lang.Class<? extends java.lang.annotation.Annotation>> |
scan(java.lang.Class<?> targetClass)
Scan all
Method of this Class for annotation class 'MethodAnno' extract nested annotations
and annotations on Parameter of annotation class 'ParamAnno'. |
AnnotationMethodScan |
scan(java.lang.reflect.Method method)
Scan a
Method for annotation class 'MethodAnno' and extract nested annotations
and for annotations on Parameter of annotation class 'ParamAnno'. |
static AnnotationMethodScan |
scan(java.lang.reflect.Method method,
java.lang.annotation.Annotation methodAnnotation,
java.lang.Class<? extends java.lang.annotation.Annotation> paramAnnotationClass) |
static AnnotationMethodScan |
scan(java.lang.reflect.Method method,
java.lang.Class<? extends java.lang.annotation.Annotation> methodAnnotationClass,
java.lang.Class<? extends java.lang.annotation.Annotation> paramAnnotationClass) |
private static final org.slf4j.Logger LOGGER
private java.lang.Class<? extends java.lang.annotation.Annotation> methodAnnotationClass
private java.lang.Class<? extends java.lang.annotation.Annotation> paramAnnotationClass
private AnnotationMethodScanner(java.lang.Class<? extends java.lang.annotation.Annotation> methodAnnotationClass,
java.lang.Class<? extends java.lang.annotation.Annotation> paramAnnotationClass)
of(Class, Class) instead.methodAnnotationClass - Annotation class used on methodparamAnnotationClass - Annotation class used on method parameterpublic static <M extends java.lang.Class<? extends java.lang.annotation.Annotation>,P extends java.lang.Class<? extends java.lang.annotation.Annotation>> AnnotationMethodScanner<M,P> of(M methodAnnotationClass, P paramAnnotationClass)
AnnotationMethodScanner by capturing Annotation class annotated on
Method and on Parameter.M - Annotation class used on methodP - Annotation class used on method parametermethodAnnotationClass - Annotation class at method level.paramAnnotationClass - Annotation class at parameter level.AnnotationMethodScannerpublic AnnotationMethodScan scan(java.lang.reflect.Method method)
Method for annotation class 'MethodAnno' and extract nested annotations
and for annotations on Parameter of annotation class 'ParamAnno'.method - Instance of the method to scanpublic static AnnotationMethodScan scan(java.lang.reflect.Method method, java.lang.Class<? extends java.lang.annotation.Annotation> methodAnnotationClass, java.lang.Class<? extends java.lang.annotation.Annotation> paramAnnotationClass)
public static AnnotationMethodScan scan(java.lang.reflect.Method method, java.lang.annotation.Annotation methodAnnotation, java.lang.Class<? extends java.lang.annotation.Annotation> paramAnnotationClass)
public <M extends java.lang.Class<? extends java.lang.annotation.Annotation>,P extends java.lang.Class<? extends java.lang.annotation.Annotation>> com.google.common.collect.Multimap<java.lang.String,AnnotationMethodScan<M,P>> scan(java.lang.Class<?> targetClass)
Method of this Class for annotation class 'MethodAnno' extract nested annotations
and annotations on Parameter of annotation class 'ParamAnno'.M - Annotation class used on methodP - Annotation class used on method parametertargetClass - Class to scan for annotation 'MethodAnno'static java.util.Map<java.lang.String,java.lang.Object> getAnnotationAttributes(java.lang.annotation.Annotation annotation)
static java.lang.annotation.Annotation[] getAnnotationFromParams(java.lang.reflect.Method method,
java.lang.Class<? extends java.lang.annotation.Annotation> paramAnnotationClass)
method - Instance of the method to scanparamAnnotationClass - Annotation class that marks a parameterCopyright © 2021. All Rights Reserved.