Class Scope

java.lang.Object
io.activej.inject.Scope

public final class Scope extends Object
  • Field Details

    • UNSCOPED

      public static final Scope[] UNSCOPED
  • Method Details

    • of

      public static Scope of(Class<? extends Annotation> annotationType)
      Creates a Scope from a marker (or stateless) annotation, only identified by its class.
    • of

      public static Scope of(Annotation annotation)
      Creates a Scope from a real (or its custom surrogate impl) annotation instance.
    • getAnnotationType

      public Class<? extends Annotation> getAnnotationType()
    • isThreadsafe

      public boolean isThreadsafe()
    • getDisplayString

      public String getDisplayString()
    • equals

      public boolean equals(@Nullable @Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object