Class EmptyObserver
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.commit.EmptyObserver
-
- All Implemented Interfaces:
Observer
public class EmptyObserver extends java.lang.Object implements Observer
Basic content change observer that doesn't do anything. Useful as a "null object" for cases where another observer has not been configured, thus avoiding an extranull
check when invoking the observer.
-
-
Field Summary
Fields Modifier and Type Field Description static EmptyObserver
INSTANCE
Static instance of this class, useful as a "null object".
-
Constructor Summary
Constructors Constructor Description EmptyObserver()
-
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.
-
-
-
Field Detail
-
INSTANCE
public static final EmptyObserver INSTANCE
Static instance of this class, useful as a "null object".
-
-
Method Detail
-
contentChanged
public 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
-
-