Class Scope

java.lang.Object
dagger.spi.model.Scope

public abstract class Scope extends Object
A representation of a Scope.
  • Constructor Details

    • Scope

      public Scope()
  • Method Details

    • scope

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

      public static boolean isScope(DaggerAnnotation scopeAnnotation)
      Returns true if scopeAnnotation() is a Scope annotation.
    • isScope

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

      public abstract DaggerAnnotation scopeAnnotation()
      The DaggerAnnotation that represents the 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 String toString()
      Returns a debug representation of the scope.
      Overrides:
      toString in class Object