public enum ServiceLocatorState extends Enum<ServiceLocatorState>
Enum Constant and Description |
---|
RUNNING
In this state the ServiceLocator is able to service requests, do injections and
generally operate in a normal manner
|
SHUTDOWN
In this state the ServiceLocator has been shutdown, and only a few selected operations
will not throw an IllegalStateException
|
Modifier and Type | Method and Description |
---|---|
static ServiceLocatorState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceLocatorState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceLocatorState RUNNING
public static final ServiceLocatorState SHUTDOWN
public static ServiceLocatorState[] values()
for (ServiceLocatorState c : ServiceLocatorState.values()) System.out.println(c);
public static ServiceLocatorState 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-2017, Oracle and/or its affiliates. All Rights Reserved.