public enum InstantiationStrategy extends Enum<InstantiationStrategy>
Enum Constant and Description |
---|
KEEP_ALIVE |
PER_LOOKUP |
POOLABLE |
SINGLETON |
Modifier and Type | Method and Description |
---|---|
String |
id() |
static InstantiationStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InstantiationStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InstantiationStrategy PER_LOOKUP
public static final InstantiationStrategy SINGLETON
public static final InstantiationStrategy KEEP_ALIVE
public static final InstantiationStrategy POOLABLE
public static InstantiationStrategy[] values()
for (InstantiationStrategy c : InstantiationStrategy.values()) System.out.println(c);
public static InstantiationStrategy 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 © 2004–2024 The Apache Software Foundation. All rights reserved.