| java.lang.Object org.codehaus.aspectwerkz.annotation.Java5AnnotationInvocationHandler
Java5AnnotationInvocationHandler | public class Java5AnnotationInvocationHandler implements InvocationHandler(Code) | | Dynamic proxy handler for ASM Annotations we extract
The handler resolve the LazyClass to a concrete Class so that the proxy creation does not trigger
any class loading.
author: Alexandre Vasseur |
Method Summary | |
public static org.codehaus.aspectwerkz.annotation.Annotation | getAnnotationProxy(org.objectweb.asm.attrs.Annotation annotation, ClassLoader loader) Build and return a dynamic proxy representing the given ASM Annotation.
The proxy implements the AspectWerkz Annotation interface, as well as the user type Annotation.
Each elements of the annotation is proxied if needed or agressively created unless Class types to not trigger
any nested loading.
Note: JSR-175 does not support Annotation value of N-dimensional array. | public Object | invoke(Object proxy, Method method, Object[] args) |
getAnnotationProxy | public static org.codehaus.aspectwerkz.annotation.Annotation getAnnotationProxy(org.objectweb.asm.attrs.Annotation annotation, ClassLoader loader)(Code) | | Build and return a dynamic proxy representing the given ASM Annotation.
The proxy implements the AspectWerkz Annotation interface, as well as the user type Annotation.
Each elements of the annotation is proxied if needed or agressively created unless Class types to not trigger
any nested loading.
Note: JSR-175 does not support Annotation value of N-dimensional array. At most 1 dimension is supported and
only for a subset of Java types.
Parameters: annotation - Parameters: loader - the classloader of the annotatED component (can be different from the one of the annotation class) |
invoke | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable(Code) | | Dynamic proxy based implementation
toString(), annotationType() and value() have a specific behavior
Parameters: proxy - Parameters: method - Parameters: args - throws: Throwable - |
|
|