mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 09:25:43 +01:00
Expose ScmCommandProtocol as extension point
This is necessary so that multiple providers (git, hg, ...) can implement this. The using class has to find the matching implementation.
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
package sonia.scm.protocolcommand;
|
||||
|
||||
import sonia.scm.plugin.ExtensionPoint;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public interface ScmSshProtocol {
|
||||
@ExtensionPoint
|
||||
public interface ScmCommandProtocol {
|
||||
|
||||
boolean canHandle(RepositoryContext repositoryContext);
|
||||
|
||||
void handle(CommandContext context, RepositoryContext repositoryContext) throws IOException;
|
||||
|
||||
Reference in New Issue
Block a user