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 ofAnnotation
that 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()
int
hashCode()
Object
invoke(Object proxy, Method method, Object[] args)
String
toString()
-
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:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
annotationType
public Class<? extends Annotation> annotationType()
- Specified by:
annotationType
in interfaceAnnotation
-
toString
public String toString()
- Specified by:
toString
in interfaceAnnotation
- Overrides:
toString
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceAnnotation
- Overrides:
hashCode
in classObject
-
-