Interface ApplicationHandler<T>
- Type Parameters:
T
- The type of handler info object that is created by the application handler
-
Method Summary
Modifier and TypeMethodDescriptioninstall
(ApplicationInformation<T> applicationInformation) setUpApplicationMonitoring
(ApplicationInformation<T> applicationInformation) This method will be called beforeinstall(ApplicationInformation)
and gives the handler the opportunity to modify what paths will be monitored for updates on a particular application.uninstall
(ApplicationInformation<T> applicationInformation)
-
Method Details
-
install
-
uninstall
-
setUpApplicationMonitoring
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 theApplicationInformation.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 theApplicationInformation
object and the framework will use this version for future operations including calls toinstall(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 theApplicationInformation#setData(Object)
method to make it available to theinstall(ApplicationInformation)
method without having to create it twice.- Parameters:
applicationInformation
- Information about the application that needs to be monitored- Returns:
- The information about what to monitor or
null
if the default monitoring can be used
-