public enum InstanceScope extends Enum<InstanceScope>
Enum Constant and Description |
---|
PER_CALL
The declaring Implementation will be instantiated every time it is getting invoked.
|
PER_CONTEXT
The declaring Implementation will be instantiated once, by the time of first invocation; such instance will
not be destroyed until the Spring Context gets refreshed or shut down.
|
Modifier and Type | Method and Description |
---|---|
static InstanceScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InstanceScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InstanceScope PER_CALL
public static final InstanceScope PER_CONTEXT
public static InstanceScope[] values()
for (InstanceScope c : InstanceScope.values()) System.out.println(c);
public static InstanceScope valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.