@Documented @Retention(value=RUNTIME) @Target(value={FIELD,PARAMETER}) public @interface Self
ActiveDescriptor
that was used
to create the instance.
The following things must be true of injection points annotated with Self
ActiveDescriptor
. The generic type is ignoredOptional
ServiceLocator.inject(Object)
methodActiveDescriptor
that can be injected have the following restrictions:ActiveDescriptor
was not pre-reified prior to being bound (i.e. third-party ActiveDescriptors)ActiveDescriptor
is not a DescriptorType.PROVIDE_METHOD
Self
will not go through the normal resolution process, and
hence cannot be customized.Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.