Annotation Type ScopeAnnotation


  • @Target(TYPE)
    @Retention(RUNTIME)
    public @interface ScopeAnnotation
    Guice doesn't allow scope annotations on abstract types (com.google.inject.internal.Annotations#checkForMisplacedScopeAnnotations()), so you can't use it directly.

    This annotation wraps actual scope annotation which will be set to generated class.

    And yes, it's named as guice marker annotation, but name is perfect and you'll never need to use both in one class.

    Since:
    10.12.2014
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class<? extends java.lang.annotation.Annotation> value  
    • Element Detail

      • value

        java.lang.Class<? extends java.lang.annotation.Annotation> value
        Returns:
        scope annotation