java.lang.Object | ||
↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
↳ | org.springframework.context.annotation.ScopedProxyMode |
Enumerates the various scoped-proxy options.
For a fuller discussion of exactly what a scoped-proxy is, see that section of the Spring reference documentation entitled 'Scoped beans as dependencies'.
Enum Values | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ScopedProxyMode | DEFAULT | Default typically equals NO , unless a different default
has been configured at the component-scan instruction level. |
|||||||||
ScopedProxyMode | INTERFACES | Create a JDK dynamic proxy implementing all interfaces exposed by the class of the target object. | |||||||||
ScopedProxyMode | NO | Do not create a scoped proxy. | |||||||||
ScopedProxyMode | TARGET_CLASS | Create a class-based proxy (requires CGLIB). |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Enum
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
|
Default typically equals NO
, unless a different default
has been configured at the component-scan instruction level.
Create a JDK dynamic proxy implementing all interfaces exposed by the class of the target object.
Do not create a scoped proxy.
This proxy-mode is not typically useful when used with a
non-singleton scoped instance, which should favor the use of the
INTERFACES
or TARGET_CLASS
proxy-modes instead if it
is to be used as a dependency.