public enum InstantiatorType extends java.lang.Enum<InstantiatorType>
| Enum Constant and Description |
|---|
CONSTRUCTOR |
FACTORY_METHOD |
| Modifier and Type | Method and Description |
|---|---|
abstract <A,R> Instantiator<A,R> |
createInstantiator(java.lang.Class<R> instanceClass,
java.lang.Class<A> argumentClass) |
static InstantiatorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InstantiatorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InstantiatorType CONSTRUCTOR
public static final InstantiatorType FACTORY_METHOD
public static InstantiatorType[] values()
for (InstantiatorType c : InstantiatorType.values()) System.out.println(c);
public static InstantiatorType 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 nullpublic abstract <A,R> Instantiator<A,R> createInstantiator(java.lang.Class<R> instanceClass, java.lang.Class<A> argumentClass)