org.glassfish.hk2.api
Annotation Type Self


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

This annotation is placed on an injection point that is to be injected with the ActiveDescriptor that was used to create the instance.

The following things must be true of injection points annotated with Self

Furthermore, the ActiveDescriptor that can be injected have the following restrictions: A valid injection point that is annotated with Self will not go through the normal resolution process, and hence cannot be customized.

Author:
jwells



Copyright © 2013 Oracle Corporation. All Rights Reserved.