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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ClassInfo
annotation()
Returns the declaration of this scope annotation.boolean
isNormal()
Returns whether this scope type is normal.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()
.
-
-
-
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
-
-