Top Description Methods
org.glassfish.hk2.api

public @Interface Proxiable

extends Annotation
Annotations
@Retention:RUNTIME
@Target:ANNOTATION_TYPE
Static Imports
java.lang.annotation.ElementType.ANNOTATION_TYPE, .RetentionPolicy.RUNTIME

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 individual Descriptors in a Proxiable scope are proxied can be controlled with the UseProxy annotation. All proxies generated by HK2 will implement ProxyCtl

A scope must not be marked with both Proxiable and Unproxiable

Author
jwells
See Also
Unproxiable UseProxy ProxyCtl

Method Summary

Modifier and TypeMethod and Description
public boolean

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)
proxyForSameScope
()

This value determines whether or not services in this scope should be proxied when being injected into other services of the same scope.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

proxyForSameScopeback to summary
public 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 individual Descriptors in this scope.

Returns:boolean

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)