public static enum ServiceLocatorFactory.CreatePolicy extends Enum<ServiceLocatorFactory.CreatePolicy>
| Enum Constant and Description |
|---|
DESTROY
Destroy the existing ServiceLocator
|
ERROR
Throw an IllegalStateException
|
RETURN
Return the existing ServiceLocator
|
| Modifier and Type | Method and Description |
|---|---|
static ServiceLocatorFactory.CreatePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceLocatorFactory.CreatePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceLocatorFactory.CreatePolicy RETURN
public static final ServiceLocatorFactory.CreatePolicy DESTROY
public static final ServiceLocatorFactory.CreatePolicy ERROR
public static ServiceLocatorFactory.CreatePolicy[] values()
for (ServiceLocatorFactory.CreatePolicy c : ServiceLocatorFactory.CreatePolicy.values()) System.out.println(c);
public static ServiceLocatorFactory.CreatePolicy 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 © 2009–2019 Oracle Corporation. All rights reserved.