public interface BootServiceStarter
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of this starter.
|
boolean |
init()
Initializes this starter.
|
boolean |
isActive()
Indicates if this starter should be used.
|
boolean |
isRequired()
If true, prevents the whole application from starting if initialization this starter was not successful.
|
boolean |
isRunning()
Indicates if this starter is running.
|
void |
startAndWait()
Starts this starter and waits (blocks the current thread).
|
void |
stop()
Stops this starter.
|
boolean init() throws Exception
Exception
- if an unexpected error occuredstartAndWait()
,
stop()
void startAndWait() throws Exception
init()
call.void stop() throws Exception
Exception
- if an unexpected error occuredinit()
,
startAndWait()
boolean isActive()
boolean isRequired()
String getName()
boolean isRunning()
Copyright © 2012–2019 Drombler. All rights reserved.