Package org.glassfish.hk2.api
Annotation Type Unproxiable
-
@Documented @Retention(RUNTIME) @Target(ANNOTATION_TYPE) public @interface Unproxiable
This annotation must go on a scope annotation in order to indicate that no services from this scope may be proxied.Any descriptor that returns true from
Descriptor.isProxiable()
but whose scope is Unproxiable will cause an exception when theDescriptor
is reified.A scope must not be marked with both
Proxiable
andUnproxiable
The
PerLookup
scope is Unproxiable because every method invocation on aPerLookup
object would cause a new instance to be created- Author:
- jwells