public enum ServiceManager extends Enum<ServiceManager>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
boot() |
<T extends BootService> |
findService(Class<T> serviceClass)
Find a
BootService implementation, which is already started. |
void |
shutdown() |
static ServiceManager |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceManager[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceManager INSTANCE
public static ServiceManager[] values()
for (ServiceManager c : ServiceManager.values()) System.out.println(c);
public static ServiceManager 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 nullpublic void boot()
public void shutdown()
public <T extends BootService> T findService(Class<T> serviceClass)
BootService implementation, which is already started.T - BootService implementation class.serviceClass - class name.BootService instanceCopyright © 2019 The Apache Software Foundation. All rights reserved.