Class ViewWatcher

java.lang.Object
io.goobi.viewer.managedbeans.ViewWatcher
All Implemented Interfaces:
Serializable

@Named @ViewScoped public class ViewWatcher extends Object implements Serializable
View scoped bean to detect leaving a view and perform some action. The action may take no arguments and procudes not outcome
Author:
florian
See Also:
  • Constructor Details

    • ViewWatcher

      public ViewWatcher()
  • Method Details

    • onLeavePage

      public void onLeavePage(Procedure onLeavePage)
      Pass a Procedure which is to be invoced when leaving the page, more specificall on @PreDestroy of this bean
      Parameters:
      onLeavePage -
    • onLeavePage

      @PreDestroy public void onLeavePage()
      Method invoked when leaving the page. Executed the Procedure passed to onLeavePage