Package org.glassfish.hk2.api
Annotation Type Proxiable
-
@Retention(RUNTIME) @Target(ANNOTATION_TYPE) public @interface Proxiable
Scope annotations that are also marked with this annotation are proxiable. All objects that are produced by this scope must be able to be proxied, and will be proxied by the system. Whether or not individualDescriptor
s in a Proxiable scope are proxied can be controlled with theUseProxy
annotation. All proxies generated by HK2 will implementProxyCtl
A scope must not be marked with both
Proxiable
andUnproxiable
- Author:
- jwells
- See Also:
Unproxiable UseProxy ProxyCtl
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
proxyForSameScope
This value determines whether or not services in this scope should be proxied when being injected into other services of the same scope.
-
-
-
Element Detail
-
proxyForSameScope
boolean proxyForSameScope
This value determines whether or not services in this scope should be proxied when being injected into other services of the same scope. This value can be overridden by individualDescriptor
s in this scope.- Returns:
- If true then this service will be proxied even when being injected into the same scope. If false then this service will NOT be proxied when being injected into the same scope (i.e., it cannot be used for lazy initialization of the service when injected into the same scope)
- Default:
- true
-
-