|
Clearspace API (1.10.16) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ApplicationLifeCycle
An interface to manage lifecycle events for the application. This interface is used internally
by the application to facilitate proper startup and shutdown order of the application's managers
and factories. Custom code that requires to be initialized and shutdown alongside the rest of
the application can register itself either via the addListener method (say from a extension of
the LifeCycleListener class) or via setting a Jive property
'jive.customJiveManagers.yourmanager' (replace 'yourmanager' with the custom manager name)
with the value being the fully qualified name of a class which implements the
JiveManager interface.
JiveApplication| Nested Class Summary | |
|---|---|
static interface |
ApplicationLifeCycle.Listener
An interface for an application life cycle listener. |
| Method Summary | |
|---|---|
void |
addListener(ApplicationLifeCycle.Listener listener)
Add an application life cycle listener. |
void |
destroy(JiveApplication.ManagerHandler managerHandler)
Called to shutdown the application. |
void |
initialize(JiveApplication.ManagerHandler managerHandler)
Initialize the application using the provided manager handle to initialize the application's managers. |
void |
removeListener(ApplicationLifeCycle.Listener listener)
Removes an application life cycle listener. |
| Method Detail |
|---|
void initialize(JiveApplication.ManagerHandler managerHandler)
throws java.lang.Throwable
managerHandler - an instance of the ManagerHandler interface used to initialize the
java.lang.Throwable
void destroy(JiveApplication.ManagerHandler managerHandler)
throws java.lang.Throwable
managerHandler - an instance of the ManagerHandler interface used when initializing the
java.lang.Throwablevoid addListener(ApplicationLifeCycle.Listener listener)
listener - an application life cycle listenervoid removeListener(ApplicationLifeCycle.Listener listener)
listener - the application life cycle listener to remove
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||