public enum BuildStrategy extends java.lang.Enum<BuildStrategy>
| Enum Constant and Description |
|---|
AUTO
An attempt will be made to build the object by invoking the constructor, if that fails, field injection will be used as a fallback
|
CONSTRUCTOR
Build an instance of an class using the best possible constructor
|
FIELD_INJECTION
Build an instance of a class using field injection.
|
| Modifier and Type | Method and Description |
|---|---|
static BuildStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BuildStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuildStrategy CONSTRUCTOR
public static final BuildStrategy FIELD_INJECTION
public static final BuildStrategy AUTO
public static BuildStrategy[] values()
for (BuildStrategy c : BuildStrategy.values()) System.out.println(c);
public static BuildStrategy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null