public abstract class DiffObserver extends Object implements Observer
getRootDiff(NodeState, NodeState, CommitInfo) method.| Constructor and Description |
|---|
DiffObserver() |
| Modifier and Type | Method and Description |
|---|---|
void |
contentChanged(NodeState root,
CommitInfo info)
Observes a content change.
|
protected abstract NodeStateDiff |
getRootDiff(NodeState before,
NodeState after,
CommitInfo info)
Returns the diff handler to be used for the given content change.
|
protected abstract NodeStateDiff getRootDiff(@Nonnull NodeState before, @Nonnull NodeState after, @Nonnull CommitInfo info)
before - state of the repository before this changesafter - state of the repository after this changesinfo - local commit information, or null if not availablepublic final void contentChanged(@Nonnull NodeState root, @Nonnull CommitInfo info)
ObserverObserver class javadocs
and relevant repository and observer registration details for more
information on when and how this method gets called.contentChanged in interface Observerroot - root state of the repositoryinfo - commit informationCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.