public enum CreateMethod extends Enum<CreateMethod>
| Enum Constant and Description |
|---|
ASNEW
Create the object by doing a 'new' on the object.
|
CONTAINER_PARAMETER
The object is a container parameter; it's value will be set at runtime when the container is constructed.
|
FACTORY_METHOD
Created by some factory, by calling a method on a static or known instance.
|
| Modifier and Type | Method and Description |
|---|---|
static CreateMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CreateMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreateMethod ASNEW
public static final CreateMethod CONTAINER_PARAMETER
public static final CreateMethod FACTORY_METHOD
public static CreateMethod[] values()
for (CreateMethod c : CreateMethod.values()) System.out.println(c);
public static CreateMethod 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.