public interface Lifecycle
Modifier and Type | Method and Description |
---|---|
void |
init(InitContext initContext)
Initialises the SPI implementation after it is loaded by the
Connect2id Server.
|
boolean |
isEnabled()
Checks if the SPI implementation is enabled and can handle requests.
|
void |
shutdown()
Shuts down the SPI implementation.
|
void init(InitContext initContext) throws java.lang.Exception
initContext
- The initialisation context. Can be used to
retrieve a configuration file required to set up
the SPI implementation, e.g. the parameters to
establish a database connection. Not
null
.java.lang.Exception
- If initialisation failed.boolean isEnabled()
true
if the SPI implementation is enabled, else
false
.void shutdown() throws java.lang.Exception
java.lang.Exception
- If proper shutdown failed.Copyright © 2014 Connect2id Ltd.. All Rights Reserved.