public enum ComponentInstantiationStrategy extends Enum<ComponentInstantiationStrategy>
| Enum Constant and Description |
|---|
PER_LOOKUP
A new component implementation instance is created at a each lookup.
|
SINGLETON
The same component implementation instance is returned for all lookups.
|
| Modifier and Type | Method and Description |
|---|---|
static ComponentInstantiationStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComponentInstantiationStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComponentInstantiationStrategy SINGLETON
public static final ComponentInstantiationStrategy PER_LOOKUP
public static ComponentInstantiationStrategy[] values()
for (ComponentInstantiationStrategy c : ComponentInstantiationStrategy.values()) System.out.println(c);
public static ComponentInstantiationStrategy 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–2017 XWiki. All rights reserved.