public interface CommitContext
CommitInfo.getInfo()
if it has been set before the merge call. This can then be used by CommitHook
to record some metadata regarding the commit.
CommitContext state would be reset in case commit is retried from within NodeStore say when a merge exception occurs.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
Name of the entry of the mutable commit attributes map in the
info
map in CommitInfo.getInfo() |
Modifier and Type | Method and Description |
---|---|
@Nullable java.lang.Object |
get(java.lang.String name)
Returns the value of the named attribute as an
Object ,
or null if no attribute of the given name exists. |
void |
remove(java.lang.String name)
Removes an attribute from this commit.
|
void |
set(java.lang.String name,
java.lang.Object value)
Stores an attribute related to this commit.
|
static final java.lang.String NAME
info
map in CommitInfo.getInfo()
void set(java.lang.String name, java.lang.Object value)
If the object passed in is null, the effect is the same as
calling remove(java.lang.String)
.
name
- a String
specifying the name of the attributevalue
- the Object
to be stored@Nullable @Nullable java.lang.Object get(java.lang.String name)
Object
,
or null
if no attribute of the given name exists.name
- String
specifying the name of
the attributeObject
containing the value
of the attribute, or null
if the attribute does not existvoid remove(java.lang.String name)
name
- a String
specifying
the name of the attribute to removeCopyright © 2010 - 2020 Adobe. All Rights Reserved