org.qi4j.api.injection.scope
Annotation Type Uses


@Retention(value=RUNTIME)
@Target(value={PARAMETER,FIELD})
@Documented
@InjectionScope
public @interface Uses

Annotation to denote the injection of a dependency to be used by a Mixin. The injected object is provided by the ValueBuilder, TransientBuilder or ObjectBuilder. Call TransientBuilder.use(java.lang.Object...) to provide the instance to be injected. The injection can be done in a couple of ways: