Package org.apache.bval.jsr.util
Class AnnotationProxy
- java.lang.Object
-
- org.apache.bval.jsr.util.AnnotationProxy
-
- All Implemented Interfaces:
Serializable,Annotation,InvocationHandler
class AnnotationProxy extends Object implements Annotation, InvocationHandler, Serializable
Description:
InvocationHandler implementation ofAnnotationthat pretends it is a "real" source code annotation.
-
-
Constructor Summary
Constructors Constructor Description AnnotationProxy(AnnotationProxyBuilder<A> descriptor)Create a new AnnotationProxy instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends Annotation>annotationType()inthashCode()Objectinvoke(Object proxy, Method method, Object[] args)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.annotation.Annotation
equals
-
-
-
-
Constructor Detail
-
AnnotationProxy
AnnotationProxy(AnnotationProxyBuilder<A> descriptor)
Create a new AnnotationProxy instance.- Type Parameters:
A-- Parameters:
descriptor-
-
-
Method Detail
-
invoke
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
annotationType
public Class<? extends Annotation> annotationType()
- Specified by:
annotationTypein interfaceAnnotation
-
toString
public String toString()
- Specified by:
toStringin interfaceAnnotation- Overrides:
toStringin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceAnnotation- Overrides:
hashCodein classObject
-
-