Interface StereotypeInfo
public interface StereotypeInfo
A stereotype. May define default scope,
a set of interceptor bindings,
default priority, whether all beans with
the stereotype are alternatives
or reserves, are eagerly initialized,
are auto-closeable,
or have default names.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the default scope defined by this stereotype.Returns the set of interceptor binding annotations defined by this stereotype.booleanReturns whether this stereotype is meta-annotated@Alternative.booleanReturns whether this stereotype is meta-annotated@AutoClose.booleanisEager()Returns whether this stereotype is meta-annotated@Eager.booleanisNamed()Returns whether this stereotype is meta-annotated@Named.booleanReturns whether this stereotype is meta-annotated@Reserve.priority()Returns the priority value this stereotype declares using the@Prioritymeta-annotation.
-
Method Details
-
defaultScope
ScopeInfo defaultScope()Returns the default scope defined by this stereotype. Returnsnullif this stereotype does not define a default scope.- Returns:
- the default scope or
null
-
interceptorBindings
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:
- immutable collection of interceptor binding annotations, never
null
-
isAlternative
boolean isAlternative()Returns whether this stereotype is meta-annotated@Alternative. This means that all beans with this stereotype are alternatives.- Returns:
- whether this stereotype is meta-annotated
@Alternative
-
isReserve
boolean isReserve()Returns whether this stereotype is meta-annotated@Reserve. This means that all beans with this stereotype are reserves.- Returns:
- whether this stereotype is meta-annotated
@Reserve - Since:
- 5.0
-
priority
Integer priority()Returns the priority value this stereotype declares using the@Prioritymeta-annotation. Priority is used to select alternatives and reserves for application and order them during typesafe resolution, and to enable interceptors and order them during invocation.Returns
nullif this stereotype is not meta-annotated@Priority.- Returns:
- the
@Priorityvalue declared by this stereotype, ornullif this stereotype is not meta-annotated@Priority
-
isEager
boolean isEager()Returns whether this stereotype is meta-annotated@Eager. This means that all beans with this stereotype are eagerly initialized.- Returns:
- whether this stereotype is meta-annotated
@Eager - Since:
- 5.0
-
isAutoClose
boolean isAutoClose()Returns whether this stereotype is meta-annotated@AutoClose. This means that all beans with this stereotype are auto-closeable.- Returns:
- whether this stereotype is meta-annotated
@AutoClose - Since:
- 5.0
-
isNamed
boolean isNamed()Returns whether this stereotype is meta-annotated@Named. This means that all beans with this stereotype have default bean names.- Returns:
- whether this stereotype is meta-annotated
@Named
-