T
- The type of handler info object that is created by the application handlerpublic interface ApplicationHandler<T>
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Future<java.lang.Boolean> |
install(ApplicationInformation<T> applicationInformation) |
ApplicationMonitoringInformation |
setUpApplicationMonitoring(ApplicationInformation<T> applicationInformation)
This method will be called before
install(ApplicationInformation) and gives the handler the opportunity to modify what paths will be monitored for updates on a
particular application. |
java.util.concurrent.Future<java.lang.Boolean> |
uninstall(ApplicationInformation<T> applicationInformation) |
java.util.concurrent.Future<java.lang.Boolean> install(ApplicationInformation<T> applicationInformation)
java.util.concurrent.Future<java.lang.Boolean> uninstall(ApplicationInformation<T> applicationInformation)
ApplicationMonitoringInformation setUpApplicationMonitoring(ApplicationInformation<T> applicationInformation)
This method will be called before install(ApplicationInformation)
and gives the handler the opportunity to modify what paths will be monitored for updates on a
particular application. The container passed in through the ApplicationInformation.getContainer()
method will have the whole application structure as it is at
install time but it is possible to monitor paths within it that do not exist yet.
If the container is adapted into a new container (such as an InterpretedContainer
) it is possible to set this new container onto the ApplicationInformation
object and the framework will use this version for future operations including calls to install(ApplicationInformation)
to prevent the need to adapt it twice into a
different instance. As well as this any data object that is created by this method can be set on the ApplicationInformation#setData(Object)
method to make it
available to the install(ApplicationInformation)
method without having to create it twice.
applicationInformation
- Information about the application that needs to be monitorednull
if the default monitoring can be used