java.lang.Object
org.eclipse.jgit.transport.PostReceiveHookChain
- All Implemented Interfaces:
PostReceiveHook
PostReceiveHook that delegates to a list
of other hooks.
Hooks are run in the order passed to the constructor.
-
Field Summary
Fields inherited from interface org.eclipse.jgit.transport.PostReceiveHook
NULL -
Method Summary
Modifier and TypeMethodDescriptionstatic PostReceiveHooknewChain(List<? extends PostReceiveHook> hooks) Create a new hook chaining the given hooks together.voidonPostReceive(ReceivePack rp, Collection<ReceiveCommand> commands) Invoked after all commands are executed and status has been returned.
-
Method Details
-
newChain
Create a new hook chaining the given hooks together.- Parameters:
hooks- hooks to execute, in order.- Returns:
- a new hook chain of the given hooks.
-
onPostReceive
Description copied from interface:PostReceiveHookInvoked after all commands are executed and status has been returned.- Specified by:
onPostReceivein interfacePostReceiveHook- Parameters:
rp- the process handling the current receive. Hooks may obtain details about the destination repository through this handle.commands- unmodifiable set of successfully completed commands. May be the empty set.
-