public interface ApplicationManager
Modifier and Type | Method and Description |
---|---|
void |
addApplicationLifecycleListener(ApplicationLifecycleListener applicationLifecycleListener)
Adds an application lifecycle listener.
|
Application[] |
getApplications()
Gets all available applications.
|
void |
removeApplicationLifecycleListener(ApplicationLifecycleListener applicationLifecycleListener)
Removes an application lifecycle listener.
|
void addApplicationLifecycleListener(ApplicationLifecycleListener applicationLifecycleListener)
It will be notified for each application event: start, stop.
applicationLifecycleListener
- the listener to add.Application[] getApplications()
If there is no application, this method returns an empty array.
void removeApplicationLifecycleListener(ApplicationLifecycleListener applicationLifecycleListener)
If the given listener is not registered, nothing is done.
applicationLifecycleListener
- the listener to remove.