public interface

BuiltinHookHandlerFactory

com.atlassian.bitbucket.hook.BuiltinHookHandlerFactory

Class Overview

Factory for HookHandler that Bitbucket ships with.

Summary

Public Methods
@Nonnull HookHandler postReceive(Repository repository, Collection<RefChange> refChanges)
Creates an HookHandler implementation that delegates to all enabled PostReceiveHook instances.
@Nonnull HookHandler preReceive(Repository repository, Collection<RefChange> refChanges)
Creates an HookHandler implementation that delegates to all enabled PreReceiveHook instances.

Public Methods

@Nonnull public HookHandler postReceive (Repository repository, Collection<RefChange> refChanges)

Creates an HookHandler implementation that delegates to all enabled PostReceiveHook instances.

Parameters
repository the repository
refChanges the list of refs that have been updated in the push.
Returns
  • the callback.

@Nonnull public HookHandler preReceive (Repository repository, Collection<RefChange> refChanges)

Creates an HookHandler implementation that delegates to all enabled PreReceiveHook instances.

Parameters
repository the repository
refChanges the list of refs that are about to updated in the push.
Returns
  • the callback.