Interface StereotypeInfo
-
public interface StereotypeInfoA 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScopeInfodefaultScope()Returns the default scope defined by this stereotype.Collection<AnnotationInfo>interceptorBindings()Returns the set of interceptor binding annotations defined by this stereotype.booleanisAlternative()Returns whether this stereotype is meta-annotated@Alternative.booleanisNamed()Returns whether this stereotype is meta-annotated@Named.Integerpriority()Returns the priority value this stereotype declares using the@Prioritymeta-annotation.
-
-
-
Method Detail
-
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
-
priority
Integer priority()
Returns the priority value this stereotype declares using the@Prioritymeta-annotation. Beans with this stereotype will be enabled for the application and ordered using this priority value (unless they declare priority explicitly).Returns
nullif this stereotype is not meta-annotated@Priority.- Returns:
- the
@Priorityvalue declared by this stereotype, ornullif this stereotype is not meta-annotated@Priority
-
-