public final class AnnotationProxyFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
AnnotationProxyFactory.AnnotationInvocationHandler
Invocation handler implementing an invoke method that redirects every method call to the custom annotation method
when possible; if not returns the reference annotation method default value
|
Modifier | Constructor and Description |
---|---|
private |
AnnotationProxyFactory() |
Modifier and Type | Method and Description |
---|---|
static <T extends java.lang.annotation.Annotation> |
getAnnotationProxy(java.lang.annotation.Annotation customAnnotation,
java.lang.Class<T> referenceAnnotation)
Returns a proxy on the customAnnotation, having the same type than the referenceAnnotation
|
public static <T extends java.lang.annotation.Annotation> T getAnnotationProxy(java.lang.annotation.Annotation customAnnotation, java.lang.Class<T> referenceAnnotation)
customAnnotation
- referenceAnnotation
-