Top Description Fields Constructors Methods
org.eclipse.jgit.transport

public Class PostReceiveHookChain

extends Object
implements PostReceiveHook
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.transport.PostReceiveHook
Imports
java.util.Collection, .List

org.eclipse.jgit.transport.PostReceiveHook that delegates to a list of other hooks.

Hooks are run in the order passed to the constructor.

Field Summary

Modifier and TypeField and Description
private final int
private final PostReceiveHook[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static PostReceiveHook

Returns:

a new hook chain of the given hooks.
newChain
(List<? extends PostReceiveHook>
hooks to execute, in order.
hooks
)

Create a new hook chaining the given hooks together.

public void
onPostReceive(ReceivePack
the process handling the current receive. Hooks may obtain details about the destination repository through this handle.
rp
,
Collection<ReceiveCommand>
unmodifiable set of successfully completed commands. May be the empty set.
commands
)

Implements org.eclipse.jgit.transport.PostReceiveHook.onPostReceive.

Invoked after all commands are executed and status has been returned.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

countback to summary
private final int count
hooksback to summary
private final PostReceiveHook[] hooks

Constructor Detail

PostReceiveHookChainback to summary
private PostReceiveHookChain(PostReceiveHook[] hooks, int count)

Method Detail

newChainback to summary
public static PostReceiveHook newChain(List<? extends PostReceiveHook> hooks)

Create a new hook chaining the given hooks together.

Parameters
hooks:List<? extends PostReceiveHook>

hooks to execute, in order.

Returns:PostReceiveHook

a new hook chain of the given hooks.

onPostReceiveback to summary
public void onPostReceive(ReceivePack rp, Collection<ReceiveCommand> commands)

Implements org.eclipse.jgit.transport.PostReceiveHook.onPostReceive.

Doc from org.eclipse.jgit.transport.PostReceiveHook.onPostReceive.

Invoked after all commands are executed and status has been returned.

Parameters
rp:ReceivePack

the process handling the current receive. Hooks may obtain details about the destination repository through this handle.

commands:Collection<ReceiveCommand>

unmodifiable set of successfully completed commands. May be the empty set.

Annotations
@Override