Class DiffObserver
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.commit.DiffObserver
-
- All Implemented Interfaces:
Observer
public abstract class DiffObserver extends java.lang.Object implements Observer
Abstract base class for observers that use a content diff to determine what changed between two consecutive observed states of the repository. Subclasses just need to provide the diff handler by implementing thegetRootDiff(NodeState, NodeState, CommitInfo)
method.
-
-
Constructor Summary
Constructors Constructor Description DiffObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contentChanged(@NotNull NodeState root, @NotNull CommitInfo info)
Observes a content change.
-
-
-
Method Detail
-
contentChanged
public final void contentChanged(@NotNull @NotNull NodeState root, @NotNull @NotNull CommitInfo info)
Description copied from interface:Observer
Observes a content change. See theObserver
class javadocs and relevant repository and observer registration details for more information on when and how this method gets called.- Specified by:
contentChanged
in interfaceObserver
- Parameters:
root
- root state of the repositoryinfo
- commit information
-
-