Interface ApplicationHandler<T>

Type Parameters:
T - The type of handler info object that is created by the application handler

public interface ApplicationHandler<T>
  • Method Details

    • install

      Future<Boolean> install(ApplicationInformation<T> applicationInformation)
    • uninstall

      Future<Boolean> uninstall(ApplicationInformation<T> applicationInformation)
    • 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 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.

      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