Lines Matching refs:Scope
26 * Identifies scope annotations. A scope annotation applies to a class
28 * instances of the type. By default, if no scope annotation is present, the
30 * the instance for one injection, and then forgets it. If a scope annotation
33 * implementation should be thread safe. The implementation of the scope
36 * <p>In the following example, the scope annotation {@code @Singleton} ensures
45 * <p>The injector generates an error if it encounters more than one scope
46 * annotation on the same class or a scope annotation it doesn't support.
48 * <p>A scope annotation:
50 * <li>is annotated with {@code @Scope}, {@code @Retention(RUNTIME)},
57 * injector configurations might use scope annotations
66 * @javax.inject.Scope
69 * <p>Annotating scope annotations with {@code @Scope} helps the injector
70 * detect the case where a programmer used the scope annotation on a class but
71 * forgot to configure the scope in the injector. A conservative injector
72 * would generate an error rather than not apply a scope.
79 public @interface Scope {}