Interface ScopeInfo
-
public interface ScopeInfoA scope of a bean. Scope type is an annotation, meta-annotated@Scopeor@NormalScope. Lifecycle of beans with given scope is determined by a context.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ClassInfoannotation()Returns the declaration of this scope annotation.booleanisNormal()Returns whether this scope type is normal.default Stringname()Binary name of this scope annotation, as defined by The Java™ Language Specification; in other words, the scope annotation name as returned byClass.getName().
-
-
-
Method Detail
-
annotation
ClassInfo annotation()
Returns the declaration of this scope annotation.- Returns:
- declaration of this scope annotation, never
null
-
name
default String name()
Binary name of this scope annotation, as defined by The Java™ Language Specification; in other words, the scope annotation name as returned byClass.getName(). Equivalent toannotation().name().- Returns:
- binary name of this scope annotation, never
null
-
isNormal
boolean isNormal()
Returns whether this scope type is normal. In other words, returns whether this scope annotation is meta-annotated@NormalScope.- Returns:
- whether this scope type is normal
-
-