Class ObserverProxy

  • All Implemented Interfaces:
    ValueObserver

    public class ObserverProxy
    extends java.lang.Object
    implements ValueObserver
    A proxy observer to pass model change events with some prefix. Whenever a source model changes, destination model is asked to notify all its observers about a change, but with prefix prepended.

    Observer is available in two versions:

  • destination model may be referenced strongly: this proxy should be used whenever a link between source and destination is permanent and should last as long both of them exist
  • destination model may be referenced weekly: this proxy should be used whenever a link between source and destination is temporary and should not prevent GC from collecting destination model