org.jboss.webbeans.introspector
Class ForwardingAnnotatedConstructor<T>
java.lang.Object
org.jboss.webbeans.introspector.ForwardingAnnotatedItem<T,S>
org.jboss.webbeans.introspector.ForwardingAnnotatedMember<T,java.lang.reflect.Constructor<T>>
org.jboss.webbeans.introspector.ForwardingAnnotatedConstructor<T>
- All Implemented Interfaces:
- AnnotatedConstructor<T>, AnnotatedItem<T,java.lang.reflect.Constructor<T>>, AnnotatedMember<T,java.lang.reflect.Constructor<T>>
- Direct Known Subclasses:
- ConstructorInjectionPoint
public abstract class ForwardingAnnotatedConstructor<T>
- extends ForwardingAnnotatedMember<T,java.lang.reflect.Constructor<T>>
- implements AnnotatedConstructor<T>
Methods inherited from class org.jboss.webbeans.introspector.ForwardingAnnotatedItem |
equals, getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getRawType, getType, hashCode, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isParameterizedType, isProxyable, isPublic, isStatic, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getRawType, getType, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isParameterizedType, isProxyable, isPublic, isStatic |
ForwardingAnnotatedConstructor
public ForwardingAnnotatedConstructor()
delegate
protected abstract AnnotatedConstructor<T> delegate()
- Description copied from class:
ForwardingAnnotatedItem
- Gets the annotated item
- Specified by:
delegate
in class ForwardingAnnotatedMember<T,java.lang.reflect.Constructor<T>>
- Returns:
- The annotated item
getAnnotatedParameters
public java.util.List<AnnotatedParameter<?>> getAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
- Description copied from interface:
AnnotatedConstructor
- Gets all parameters to the constructor which are annotated with
annotationType
- Specified by:
getAnnotatedParameters
in interface AnnotatedConstructor<T>
- Parameters:
annotationType
- A annotation to match
- Returns:
- A list of abstracted parameters with the given annotation type.
Returns an empty set if there are no matches.
getDeclaringClass
public AnnotatedType<T> getDeclaringClass()
- Description copied from interface:
AnnotatedConstructor
- Gets the declaring class of the annotation
- Specified by:
getDeclaringClass
in interface AnnotatedConstructor<T>
- Specified by:
getDeclaringClass
in interface AnnotatedMember<T,java.lang.reflect.Constructor<T>>
- Returns:
- An abstraction of the declaring class
getParameters
public java.util.List<? extends AnnotatedParameter<?>> getParameters()
- Description copied from interface:
AnnotatedConstructor
- Gets all parameters to the constructor
- Specified by:
getParameters
in interface AnnotatedConstructor<T>
- Returns:
- A set of abstracted parameters. Returns an empty set if there are
no parameters
newInstance
public T newInstance(java.lang.Object... parameters)
throws java.lang.IllegalArgumentException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
- Description copied from interface:
AnnotatedConstructor
- Creates a new instance of the class, using this constructor
- Specified by:
newInstance
in interface AnnotatedConstructor<T>
- Returns:
- The created instance
- Throws:
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
getSignature
public ConstructorSignature getSignature()
- Specified by:
getSignature
in interface AnnotatedConstructor<T>
Copyright © 2011. All Rights Reserved.