Top Description Methods
jakarta.enterprise.inject.build.compatible.spi

public Interface StereotypeInfo

Imports
java.util.Collection, jakarta.enterprise.lang.model.AnnotationInfo

A stereotype. May define default scope, a set of interceptor bindings, default priority, and whether all beans with the stereotype are alternatives or have default names.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public ScopeInfo

Returns:

the default scope or null
defaultScope
()

Returns the default scope defined by this stereotype.

public Collection<AnnotationInfo>

Returns:

immutable collection of interceptor binding annotations, never null
interceptorBindings
()

Returns the set of interceptor binding annotations defined by this stereotype.

public boolean

Returns:

whether this stereotype is meta-annotated @Alternative
isAlternative
()

Returns whether this stereotype is meta-annotated @Alternative.

public boolean

Returns:

whether this stereotype is meta-annotated @Named
isNamed
()

Returns whether this stereotype is meta-annotated @Named.

public Integer

Returns:

the @Priority value declared by this stereotype, or null if this stereotype is not meta-annotated @Priority
priority
()

Returns the priority value this stereotype declares using the @Priority meta-annotation.

Method Detail

defaultScopeback to summary
public ScopeInfo defaultScope()

Returns the default scope defined by this stereotype. Returns null if this stereotype does not define a default scope.

Returns:ScopeInfo

the default scope or null

interceptorBindingsback to summary
public Collection<AnnotationInfo> interceptorBindings()

Returns the set of interceptor binding annotations defined by this stereotype. Returns an empty collection if this stereotype does not define any interceptor binding.

Returns:Collection<AnnotationInfo>

immutable collection of interceptor binding annotations, never null

isAlternativeback to summary
public boolean isAlternative()

Returns whether this stereotype is meta-annotated @Alternative. This means that all beans with this stereotype are alternatives.

Returns:boolean

whether this stereotype is meta-annotated @Alternative

isNamedback to summary
public boolean isNamed()

Returns whether this stereotype is meta-annotated @Named. This means that all beans with this stereotype have default bean names.

Returns:boolean

whether this stereotype is meta-annotated @Named

priorityback to summary
public Integer priority()

Returns the priority value this stereotype declares using the @Priority meta-annotation. Beans with this stereotype will be enabled for the application and ordered using this priority value (unless they declare priority explicitly).

Returns null if this stereotype is not meta-annotated @Priority.

Returns:Integer

the @Priority value declared by this stereotype, or null if this stereotype is not meta-annotated @Priority