Class EmptyObserver
java.lang.Object
org.apache.jackrabbit.oak.spi.commit.EmptyObserver
- All Implemented Interfaces:
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 extra
null check when invoking the observer.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EmptyObserverStatic instance of this class, useful as a "null object". -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontentChanged(@NotNull NodeState root, @NotNull CommitInfo info) Observes a content change.
-
Field Details
-
INSTANCE
Static instance of this class, useful as a "null object".
-
-
Constructor Details
-
EmptyObserver
public EmptyObserver()
-
-
Method Details
-
contentChanged
Description copied from interface:ObserverObserves a content change. See theObserverclass javadocs and relevant repository and observer registration details for more information on when and how this method gets called.- Specified by:
contentChangedin interfaceObserver- Parameters:
root- root state of the repositoryinfo- commit information
-