Package org.apache.webbeans.config
Class DefaultAnnotation
- java.lang.Object
-
- org.apache.webbeans.config.DefaultAnnotation
-
- All Implemented Interfaces:
Annotation,InvocationHandler
public final class DefaultAnnotation extends Object implements InvocationHandler, Annotation
A small helper class to create a Annotation instance of the given annotation class viaProxy. The annotation literal gets filled with the default values. TODO implement class caching!
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends Annotation>annotationType()Objectinvoke(Object proxy, Method method, Object[] args)static Annotationof(Class<? extends Annotation> annotation)StringtoString()Copied from jakarta.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
-
-
-
-
Method Detail
-
of
public static Annotation of(Class<? extends Annotation> annotation)
-
invoke
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
annotationType
public Class<? extends Annotation> annotationType()
- Specified by:
annotationTypein interfaceAnnotation
-
toString
public String toString()
Copied from jakarta.enterprise.util.AnnotationLiteral#toString() with minor changes.- Specified by:
toStringin interfaceAnnotation- Overrides:
toStringin classObject- Returns:
-
-