com.google.inject.ScopeAnnotation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of guice Show documentation
Show all versions of guice Show documentation
Guice implementation with named modules for Java 11+
package com.google.inject;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Annotates annotations which are used for scoping. Only one such annotation
* may apply to a single implementation class. You must also annotate scope
* annotations with {@code @Retention(RUNTIME)}. For example:
*
*
* {@code @}Retention(RUNTIME)
* {@code @}Target(TYPE, METHOD)
* {@code @}ScopeAnnotation
* public {@code @}interface SessionScoped {}
*
*/
@Target(ANNOTATION_TYPE)
@Retention(RUNTIME)
public @interface ScopeAnnotation {
}