org.apache.webbeans.config
Class DefaultAnnotation
java.lang.Object
org.apache.webbeans.config.DefaultAnnotation
- All Implemented Interfaces:
- java.lang.annotation.Annotation, java.lang.reflect.InvocationHandler
public class DefaultAnnotation
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler, java.lang.annotation.Annotation
A small helper class to create a Annotation instance of the given annotation class
via Proxy.
The annotation literal gets filled with the default values.
TODO implement class caching!
|
Method Summary |
java.lang.Class<? extends java.lang.annotation.Annotation> |
annotationType()
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
static java.lang.annotation.Annotation |
of(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
|
java.lang.String |
toString()
Copied from javax.enterprise.util.AnnotationLiteral#toString()
with minor changes. |
| 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 |
of
public static java.lang.annotation.Annotation of(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
annotationType
public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
- Specified by:
annotationType in interface java.lang.annotation.Annotation
toString
public java.lang.String toString()
- Copied from javax.enterprise.util.AnnotationLiteral#toString()
with minor changes.
- Specified by:
toString in interface java.lang.annotation.Annotation- Overrides:
toString in class java.lang.Object
- Returns:
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.