A
- The annotation type has to be proxed.public final class AnnotationProxy<A extends Annotation> extends Object implements Annotation, InvocationHandler
Modifier and Type | Method and Description |
---|---|
Class<? extends Annotation> |
annotationType() |
boolean |
equals(Object obj) |
Object |
getProperty(String name)
Returns the property value, given the name, if present.
|
A |
getProxedAnnotation()
Returns the proxed annotation.
|
int |
hashCode() |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
static <A extends Annotation> |
newProxy(Class<A> annotationType)
Creates a new annotation proxy.
|
void |
setProperty(String name,
Object value)
Set a property value.
|
String |
toString() |
public static <A extends Annotation> AnnotationProxy<A> newProxy(Class<A> annotationType)
A
- the annotation type has to be proxed.annotationType
- the annotation type class has to be proxed.public void setProperty(String name, Object value)
name
- the property name.value
- the property value.public Object getProperty(String name)
name
- the property name.public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public Class<? extends Annotation> annotationType()
annotationType
in interface Annotation
public A getProxedAnnotation()
public boolean equals(Object obj)
equals
in interface Annotation
equals
in class Object
public int hashCode()
hashCode
in interface Annotation
hashCode
in class Object
public String toString()
toString
in interface Annotation
toString
in class Object
Copyright © 2017. All rights reserved.