mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 09:25:43 +01:00
added javadoc
This commit is contained in:
@@ -3,10 +3,29 @@ package sonia.scm.repository.api;
|
|||||||
import sonia.scm.plugin.ExtensionPoint;
|
import sonia.scm.plugin.ExtensionPoint;
|
||||||
import sonia.scm.repository.Repository;
|
import sonia.scm.repository.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Provider for scm native protocols.
|
||||||
|
*
|
||||||
|
* @param <T> type of protocol
|
||||||
|
*
|
||||||
|
* @since 2.0.0
|
||||||
|
*/
|
||||||
@ExtensionPoint(multi = true)
|
@ExtensionPoint(multi = true)
|
||||||
public interface ScmProtocolProvider<T extends ScmProtocol> {
|
public interface ScmProtocolProvider<T extends ScmProtocol> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns type of repository (e.g.: git, svn, hg, etc.)
|
||||||
|
*
|
||||||
|
* @return name of type
|
||||||
|
*/
|
||||||
String getType();
|
String getType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns protocol for the given repository.
|
||||||
|
*
|
||||||
|
* @param repository repository
|
||||||
|
*
|
||||||
|
* @return protocol for repository
|
||||||
|
*/
|
||||||
T get(Repository repository);
|
T get(Repository repository);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user