package com.atlassian.bitbucket.scm.hook;

import com.atlassian.bitbucket.hook.HookHandler;
import com.atlassian.bitbucket.hook.HookRequest;
import com.atlassian.bitbucket.repository.Repository;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

public interface PluginHookHandlerFactory {

    /**
     * @param repository the repository
     * @param hookRequest
     * @return
     */
    @Nullable
    HookHandler create(@Nonnull Repository repository, @Nonnull HookRequest hookRequest);

}
