org.jboss.webbeans.introspector
Interface AnnotatedConstructor<T>

All Superinterfaces:
AnnotatedItem<T,java.lang.reflect.Constructor<T>>
All Known Implementing Classes:
AnnotatedConstructorImpl

public interface AnnotatedConstructor<T>
extends AnnotatedItem<T,java.lang.reflect.Constructor<T>>

Represents a Class Constructor

Author:
Pete Muir

Field Summary
 
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
MAPPED_METAANNOTATIONS
 
Method Summary
 java.util.List<AnnotatedParameter<java.lang.Object>> getAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
          Gets all parameters to the constructor which are annotated with annotationType
 AnnotatedType<T> getDeclaringClass()
          Gets the declaring class of the annotation
 java.util.List<AnnotatedParameter<java.lang.Object>> getParameters()
          Gets all parameters to the constructor
 T newInstance(Manager manager)
          Creates a new instance of the class, using this constructor
 
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
getActualTypeArguments, getAnnotation, getAnnotations, getBindingTypes, getBindingTypesAsArray, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getType, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isFinal, isProxyable, isStatic
 

Method Detail

getParameters

java.util.List<AnnotatedParameter<java.lang.Object>> getParameters()
Gets all parameters to the constructor

Returns:
A set of abstracted parameters. Returns an empty set if there are no parameters

getAnnotatedParameters

java.util.List<AnnotatedParameter<java.lang.Object>> getAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all parameters to the constructor which are annotated with annotationType

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.

newInstance

T newInstance(Manager manager)
Creates a new instance of the class, using this constructor

Parameters:
manager - The Web Beans manager
Returns:
The created instance

getDeclaringClass

AnnotatedType<T> getDeclaringClass()
Gets the declaring class of the annotation

Returns:
An abstraction of the declaring class


Copyright © 2008. All Rights Reserved.