Interface ScopeInfo
public interface ScopeInfo
A scope of a bean. Scope type is an annotation, meta-annotated
@Scope or @NormalScope.
Lifecycle of beans with given scope is determined by a context.- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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 Details
-
annotation
ClassInfo annotation()Returns the declaration of this scope annotation.- Returns:
- declaration of this scope annotation, never
null
-
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
-