Package org.eclipse.jgit.transport
Class PreReceiveHookChain
java.lang.Object
org.eclipse.jgit.transport.PreReceiveHookChain
- All Implemented Interfaces:
PreReceiveHook
PreReceiveHook that delegates to a list of
other hooks.
Hooks are run in the order passed to the constructor.
-
Field Summary
FieldsFields inherited from interface org.eclipse.jgit.transport.PreReceiveHook
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PreReceiveHooknewChain(List<? extends PreReceiveHook> hooks) Create a new hook chaining the given hooks together.voidonPreReceive(ReceivePack rp, Collection<ReceiveCommand> commands) Invoked just before commands are executed.
-
Field Details
-
hooks
-
count
private final int count
-
-
Constructor Details
-
PreReceiveHookChain
-
-
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.
-
onPreReceive
Invoked just before commands are executed.See the class description for how this method can impact execution.
- Specified by:
onPreReceivein interfacePreReceiveHook- Parameters:
rp- the process handling the current receive. Hooks may obtain details about the destination repository through this handle.commands- unmodifiable set of valid commands still pending execution. May be the empty set.
-