public interface BuiltinHookHandlerFactory
HookHandler
that Bitbucket ships with.Modifier and Type | Method and Description |
---|---|
com.atlassian.bitbucket.hook.HookHandler |
postReceive(com.atlassian.bitbucket.repository.Repository repository,
Collection<com.atlassian.bitbucket.repository.RefChange> refChanges)
Creates an
HookHandler implementation that delegates to all enabled PostRepositoryHook instances. |
com.atlassian.bitbucket.hook.HookHandler |
preReceive(com.atlassian.bitbucket.repository.Repository repository,
Collection<com.atlassian.bitbucket.repository.RefChange> refChanges)
Creates an
HookHandler implementation that delegates to all enabled PreRepositoryHook instances. |
@Nonnull com.atlassian.bitbucket.hook.HookHandler preReceive(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull Collection<com.atlassian.bitbucket.repository.RefChange> refChanges)
HookHandler
implementation that delegates to all enabled PreRepositoryHook
instances.repository
- the repositoryrefChanges
- the list of refs that are about to updated in the push.@Nonnull com.atlassian.bitbucket.hook.HookHandler postReceive(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull Collection<com.atlassian.bitbucket.repository.RefChange> refChanges)
HookHandler
implementation that delegates to all enabled PostRepositoryHook
instances.repository
- the repositoryrefChanges
- the list of refs that have been updated in the push.Copyright © 2021 Atlassian. All rights reserved.