org.apache.bval.jsr303.xml
Class AnnotationProxy
java.lang.Object
org.apache.bval.jsr303.xml.AnnotationProxy
- All Implemented Interfaces:
- Serializable, Annotation, InvocationHandler
class AnnotationProxy
- extends Object
- implements Annotation, InvocationHandler, Serializable
Description:
InvocationHandler implementation of Annotation
that pretends it
is a "real" source code annotation.
AnnotationProxy
public AnnotationProxy(AnnotationProxyBuilder<A> descriptor)
- Create a new AnnotationProxy instance.
- Type Parameters:
A
- - Parameters:
descriptor
-
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
-
- Specified by:
invoke
in interface InvocationHandler
- Throws:
Throwable
annotationType
public Class<? extends Annotation> annotationType()
-
- Specified by:
annotationType
in interface Annotation
toString
public String toString()
-
- Specified by:
toString
in interface Annotation
- Overrides:
toString
in class Object
Copyright © 2010-2012 Apache Software Foundation. All Rights Reserved.