| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ScopedProxyMode>
org.springframework.context.annotation.ScopedProxyMode
public enum 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'.
ScopeMetadata| Enum Constant Summary | |
|---|---|
| INTERFACESCreate a JDK dynamic proxy implementing all interfaces exposed by the class of the target object. | |
| NODo not create a scoped proxy. | |
| TARGET_CLASSCreate a class-based proxy (requires CGLIB). | |
| Method Summary | |
|---|---|
| static ScopedProxyMode | valueOf(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. | 
| Methods inherited from class java.lang.Enum | 
|---|
| clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Enum Constant Detail | 
|---|
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
| Method Detail | 
|---|
public static ScopedProxyMode[] values()
for (ScopedProxyMode c : ScopedProxyMode.values()) System.out.println(c);
public static ScopedProxyMode valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||