public enum ScopedProxyMode extends java.lang.Enum<ScopedProxyMode>
For a more complete discussion of exactly what a scoped proxy is, see the section of the Spring reference documentation entitled 'Scoped beans as dependencies'.
ScopeMetadata
Enum Constant and Description |
---|
DEFAULT
Default typically equals
NO , unless a different default
has been configured at the component-scan instruction level. |
INTERFACES
Create a JDK dynamic proxy implementing all interfaces exposed by
the class of the target object.
|
NO
Do not create a scoped proxy.
|
TARGET_CLASS
Create a class-based proxy (uses CGLIB).
|
Modifier and Type | Method and Description |
---|---|
static ScopedProxyMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScopedProxyMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScopedProxyMode DEFAULT
NO
, unless a different default
has been configured at the component-scan instruction level.public static final ScopedProxyMode NO
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.
public static final ScopedProxyMode INTERFACES
public static final ScopedProxyMode TARGET_CLASS
public static ScopedProxyMode[] values()
for (ScopedProxyMode c : ScopedProxyMode.values()) System.out.println(c);
public static ScopedProxyMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null