Top Description Methods
javax.enterprise.inject.spi

public Interface AnnotatedConstructor<X>

extends AnnotatedCallable<X>
Type Parameters
<X>
the declaring class
Imports
java.lang.annotation.Annotation, java.lang.reflect.Constructor, java.util.LinkedHashSet, .Set

Represents a constructor of a Java class.

Authors
Gavin King, Pete Muir
See Also
Constructor

Method Summary

Modifier and TypeMethod and Description
public default <T extends Annotation> Set<T>
getAnnotations(Class<T>
the class of the annotation type
annotationType
)

Implements javax.enterprise.inject.spi.Annotated.getAnnotations.

Get program element annotations of a certain annotation type.

public Constructor<X>

Returns:

the constructor
getJavaMember
()

Redeclares javax.enterprise.inject.spi.AnnotatedMember.getJavaMember.

Get the underlying Constructor.

Inherited from javax.enterprise.inject.spi.AnnotatedCallable:
getParameters

Method Detail

getAnnotationsback to summary
public default <T extends Annotation> Set<T> getAnnotations(Class<T> annotationType)

Implements javax.enterprise.inject.spi.Annotated.getAnnotations.

Doc from javax.enterprise.inject.spi.Annotated.getAnnotations.

Get program element annotations of a certain annotation type.

This method returns back all annotations, including repeatable annotations of this type. The behavior of this method is intended to be the same behavior as AnnotatedElement#getAnnotationsByType(Class), where repeatable annotations are supported.

Parameters
<T>
the type of the annotation
annotationType:Class<T>

the class of the annotation type

Returns:Set<T>

the program element annotations of the given annotation type, or an empty collection

Annotations
@Override
getJavaMemberback to summary
public Constructor<X> getJavaMember()

Redeclares javax.enterprise.inject.spi.AnnotatedMember.getJavaMember.

Get the underlying Constructor.

Returns:Constructor<X>

the constructor