Module cloud.piranha.webapp.impl
Package cloud.piranha.webapp.impl
Class DefaultAnnotationManager.DefaultAnnotationInfo<T>
java.lang.Object
cloud.piranha.webapp.impl.DefaultAnnotationManager.DefaultAnnotationInfo<T>
- Type Parameters:
T
- the type.
- All Implemented Interfaces:
AnnotationManager.AnnotationInfo<T>
- Enclosing class:
- DefaultAnnotationManager
public static class DefaultAnnotationManager.DefaultAnnotationInfo<T> extends java.lang.Object implements AnnotationManager.AnnotationInfo<T>
The default AnnotationInfo.
-
Constructor Summary
Constructors Constructor Description DefaultAnnotationInfo(T instance, java.lang.reflect.AnnotatedElement target)
Constructor. -
Method Summary
Modifier and Type Method Description T
getInstance()
Get the instance.java.lang.reflect.AnnotatedElement
getTarget()
Get the target.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cloud.piranha.webapp.api.AnnotationManager.AnnotationInfo
getTargetType
-
Constructor Details
-
DefaultAnnotationInfo
Constructor.- Parameters:
instance
- the instance.target
- the target annotated element.
-
-
Method Details
-
getInstance
Description copied from interface:AnnotationManager.AnnotationInfo
Get the instance.- Specified by:
getInstance
in interfaceAnnotationManager.AnnotationInfo<T>
- Returns:
- the instance.
-
getTarget
public java.lang.reflect.AnnotatedElement getTarget()Description copied from interface:AnnotationManager.AnnotationInfo
Get the target.- Specified by:
getTarget
in interfaceAnnotationManager.AnnotationInfo<T>
- Returns:
- the target.
-