public class EmptyHook extends Object implements CommitHook
INSTANCEinstance can be used as a "null object" in cases where another commit hook has not been configured, thus avoiding the need for extra code for such cases.
CommitHookinterface. For example if it is later decided that new arguments are needed in the hook methods, this class is guaranteed to implement any new method signatures in a way that falls gracefully back to any earlier behavior.
|Modifier and Type||Field and Description|
Static instance of this class, useful as a "null object".
|Constructor and Description|
|Modifier and Type||Method and Description|
Validates and/or modifies the given content change before it gets persisted.
public static final CommitHook INSTANCE
@Nonnull public NodeState processCommit(NodeState before, NodeState after, CommitInfo info) throws CommitFailedException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.