org.codehaus.backport175.reader.proxy
Class JavaDocAnnotationInvocationHander

java.lang.Object
  extended by org.codehaus.backport175.reader.proxy.JavaDocAnnotationInvocationHander
All Implemented Interfaces:
java.io.Serializable, java.lang.reflect.InvocationHandler

public class JavaDocAnnotationInvocationHander
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, java.io.Serializable

Implements a strongly typed reader handler for JavaDoc annotations.

Author:
Jonas Bonér, Alexandre Vasseur
See Also:
Serialized Form

Constructor Summary
JavaDocAnnotationInvocationHander(java.lang.Class annotationInterface, AnnotationElement.Annotation annotation, java.lang.ClassLoader annotatedClassClassLoader)
          Constructor that will trigger the parsing if required
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          The proxy invoke method, dispatches to the target method being invoked.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaDocAnnotationInvocationHander

public JavaDocAnnotationInvocationHander(java.lang.Class annotationInterface,
                                         AnnotationElement.Annotation annotation,
                                         java.lang.ClassLoader annotatedClassClassLoader)
Constructor that will trigger the parsing if required

Parameters:
annotationInterface -
annotation -
annotatedClassClassLoader - classloader of the annotated class from which we can safely load all values
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
The proxy invoke method, dispatches to the target method being invoked.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Parameters:
proxy -
method -
args -
Returns:
Throws:
java.lang.Throwable