Class Scope


  • public abstract class Scope
    extends java.lang.Object
    A representation of a Scope.
    • Constructor Detail

      • Scope

        public Scope()
    • Method Detail

      • scope

        public static Scope scope​(DaggerAnnotation scopeAnnotation)
        Creates a Scope object from the Scope-annotated annotation type.
      • isScope

        public static boolean isScope​(DaggerTypeElement scopeAnnotationType)
        Returns true if scopeAnnotationType is a Scope annotation.
      • isSingleton

        public final boolean isSingleton()
        Returns true if this scope is the @Singleton scope.
      • isReusable

        public final boolean isReusable()
        Returns true if this scope is the @Reusable scope.
      • isProductionScope

        public final boolean isProductionScope()
        Returns true if this scope is the @ProductionScope scope.
      • toString

        public final java.lang.String toString()
        Returns a debug representation of the scope.
        Overrides:
        toString in class java.lang.Object