Top Description Fields Constructors Methods
org.springframework.context.annotation

public final Enum ScopedProxyMode

extends Enum<ScopedProxyMode>
Class Inheritance

Enumerates the various scoped-proxy options.

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'.

Author
Mark Fisher
Since
2.5
See Also
ScopeMetadata

Field Summary

Modifier and TypeField and Description
public static final ScopedProxyMode
DEFAULT

Default typically equals NO, unless a different default has been configured at the component-scan instruction level.

public static final ScopedProxyMode
INTERFACES

Create a JDK dynamic proxy implementing all interfaces exposed by the class of the target object.

public static final ScopedProxyMode
NO

Do not create a scoped proxy.

public static final ScopedProxyMode
TARGET_CLASS

Create a class-based proxy (uses CGLIB).

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ScopedProxyMode
public static ScopedProxyMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DEFAULTback to summary
public static final ScopedProxyMode DEFAULT

Default typically equals NO, unless a different default has been configured at the component-scan instruction level.

INTERFACESback to summary
public static final ScopedProxyMode INTERFACES

Create a JDK dynamic proxy implementing all interfaces exposed by the class of the target object.

NOback to summary
public static final ScopedProxyMode NO

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.

TARGET_CLASSback to summary
public static final ScopedProxyMode TARGET_CLASS

Create a class-based proxy (uses CGLIB).

Constructor Detail

ScopedProxyModeback to summary
private ScopedProxyMode()

Method Detail

valueOfback to summary
public static ScopedProxyMode valueOf(String name)
valuesback to summary
public static ScopedProxyMode[] values()