public enum BindingScope extends Enum<BindingScope>
| Enum Constant and Description |
|---|
PROTOTYPE
This type gets initialized every time an object is needed.
|
SINGLETON
Singleton scope: the object gets created only once within the container, and is
reused when the same object is required again.
|
| Modifier and Type | Method and Description |
|---|---|
static BindingScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BindingScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BindingScope SINGLETON
public static final BindingScope PROTOTYPE
public static BindingScope[] values()
for (BindingScope c : BindingScope.values()) System.out.println(c);
public static BindingScope 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 © 2017 etc.to. All rights reserved.