Interface BasicSession.OrderedObserver

  • All Superinterfaces:
    Session.Observer
    All Known Implementing Classes:
    ContextManager, ExecTool
    Enclosing class:
    BasicSession

    public static interface BasicSession.OrderedObserver
    extends Session.Observer
    Extension to the Observer interface for those classes which are sensitive to the order of notifying. If an observer wants to be notified in the very first turn, it should implements OrderedObserver interface, not just Observer and implement the order() method to return Integer.MIN_VALUE. To be notified last, the order() method should return Integer.MAX_VALUE. The order of regular observers is zero.
    • Method Detail

      • order

        int order()
        Returns number from Integer.MIN_VALUE to Integer.MAX_VALUE to be sorted by when notifying.