public interface ApplicationService
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ApplicationListener listener)
Adds the given listener for application lifecycle events.
|
Application |
getApplication(ApplicationId appId)
Returns the application with the supplied application identifier.
|
Set<Application> |
getApplications()
Returns the set of all installed applications.
|
ApplicationId |
getId(String name)
Returns the registered id of the application with the given name.
|
Set<Permission> |
getPermissions(ApplicationId appId)
Returns the permissions currently granted to the applications.
|
ApplicationState |
getState(ApplicationId appId)
Return the application state.
|
void |
removeListener(ApplicationListener listener)
Removes the specified listener for application lifecycle events.
|
Set<Application> getApplications()
ApplicationId getId(String name)
name - application nameApplication getApplication(ApplicationId appId)
appId - application identifierApplicationState getState(ApplicationId appId)
appId - application identifierSet<Permission> getPermissions(ApplicationId appId)
appId - application identifiervoid addListener(ApplicationListener listener)
listener - listener to be addedvoid removeListener(ApplicationListener listener)
listener - listener to be removedCopyright © 2015. All rights reserved.