Class CompositeObserver

  • All Implemented Interfaces:
    Observer

    public class CompositeObserver
    extends java.lang.Object
    implements Observer
    Composite observer that delegates all content changes to the set of currently registered component observers.
    • Constructor Detail

      • CompositeObserver

        public CompositeObserver()
    • Method Detail

      • addObserver

        public void addObserver​(@NotNull
                                @NotNull Observer observer)
      • removeObserver

        public void removeObserver​(@NotNull
                                   @NotNull Observer observer)
      • contentChanged

        public void contentChanged​(@NotNull
                                   @NotNull NodeState root,
                                   @NotNull
                                   @NotNull CommitInfo info)
        Description copied from interface: Observer
        Observes a content change. See the Observer class javadocs and relevant repository and observer registration details for more information on when and how this method gets called.
        Specified by:
        contentChanged in interface Observer
        Parameters:
        root - root state of the repository
        info - commit information
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object