org.apache.bval.jsr303.xml
Class AnnotationProxy

java.lang.Object
  extended by 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.


Constructor Summary
AnnotationProxy(AnnotationProxyBuilder<A> descriptor)
          Create a new AnnotationProxy instance.
 
Method Summary
 Class<? extends Annotation> annotationType()
          
 Object invoke(Object proxy, Method method, Object[] args)
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.annotation.Annotation
equals, hashCode
 

Constructor Detail

AnnotationProxy

public 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 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-2014 The Apache Software Foundation. All Rights Reserved.