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 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 by Class.getName(). Equivalent to annotation().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