com.sun.javatest.exec
Interface BasicSession.OrderedObserver
- All Superinterfaces:
- Session.Observer
- All Known Implementing Classes:
- ContextManager, ExecTool
- Enclosing class:
- BasicSession
public static interface BasicSession.OrderedObserver
- extends Session.Observer
Extentsion 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 Summary |
int |
order()
Returns number from Integer.MIN_VALUE to Integer.MAX_VALUE
to be sorted by when notifying. |
order
int order()
- Returns number from Integer.MIN_VALUE to Integer.MAX_VALUE
to be sorted by when notifying.
Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.