Application Management
Java
Listing Applications
To list all applications available to the current user, use:
glue.appManager().applications();
Starting Applications
To start an application, use the start()
method:
glue.appManager().start("clientlist")
.whenComplete((instance, error) -> {
if (error != null) {
// application failed to start
}
});
You can also pass a context object (an application-specific object that will be available in the new app) or override any of the pre-configured window settings:
glue.appManager().start("clientcontact", Collections.singletonMap("selectedUser", 2));
Listing Running Instances
To list all running instances of an application, use:
glue.appManager().instances();
Stopping Instances
To stop a running instance, use the close()
or closeAsync()
method:
instance.closeAsync();