public interface ApplicationController
Application. A Application is NOT forced to provide an
implementation of this, it's completely optional. Applications which need to allocate/free some resources
on startup/shutdown should use this interface. In each Application there can only be one bean
implementing ApplicationController.| Modifier and Type | Method and Description |
|---|---|
boolean |
addSite(Site site,
Application application,
Environment environment)
This method is called immediately after adding a
Application from a Site, which has not been
reloaded at this point. |
boolean |
removeSite(Site site,
Application application,
Environment environment)
This method is called immediately after removing a
Application from a Site, which has not been
reloaded at this point. |
boolean |
shutdown(Site site,
Application application,
Environment environment)
This method is called when a
Site is being shutdown. |
boolean |
start(Site site,
Application application,
Environment environment)
This method is called when a
Site is being (re)loaded. |
boolean start(Site site, Application application, Environment environment)
Site is being (re)loaded. A Application is supposed to initialize
itself within this method.site - the Site to which the Application is assigned toapplication - the Application which is assigned to the Siteenvironment - the current Environmenttrue on success, false otherwiseboolean shutdown(Site site, Application application, Environment environment)
Site is being shutdown. A Application is supposed to shutdown itself
within this method (free resources etc.).site - the Site to which the Application is assigned toapplication - the Application which is assigned to the Siteenvironment - the current Environmenttrue on success, false otherwiseboolean removeSite(Site site, Application application, Environment environment)
Application from a Site, which has not been
reloaded at this point. The purpose is, similar to shutdown(Site, Application, Environment), to free
resources.site - the Site from which the Application is being removedapplication - the Application which is being removed from the Siteenvironment - the current Environmenttrue on success, false otherwiseboolean addSite(Site site, Application application, Environment environment)
Application from a Site, which has not been
reloaded at this point.site - the Site to which the Application was assigned toapplication - the Application which was assigned to the Siteenvironment - the current Environmenttrue on success, false otherwiseCopyright © 2011–2022 aiticon GmbH. All rights reserved.