Package jetbrains.vcs.api
Interface VcsServiceProvider
-
- All Known Subinterfaces:
VcsManager,VcsManagerEx,VcsServiceFactory,VcsServiceInterceptor
- All Known Implementing Classes:
InterceptableVcsServiceFactory,SecuredVcsManager,VcsManagerImpl,VcsServiceFactoryImpl
public interface VcsServiceProviderBase interface to contain commonly used methods to access Vcs services.- Since:
- TC 8.0
- Author:
- Eugene Petrenko (eugene.petrenko@jetbrains.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends VcsGenericService>
TgetGenericService(String vcsName, Class<T> serviceClass)Fetches a global vcs-related service for a given Vcs plugins<T extends VcsService>
TgetVcsService(VcsSettings settings, Class<T> serviceClass)Fetches a repository layout service of given type by given settings.
-
-
-
Method Detail
-
getVcsService
@Nullable <T extends VcsService> T getVcsService(@NotNull VcsSettings settings, @NotNull Class<T> serviceClass)
Fetches a repository layout service of given type by given settings. Null will be returned if service is not implemented- Type Parameters:
T- type of service- Parameters:
settings- RepositoryLayout settings descriptionserviceClass- type of service- Returns:
- RepositoryLayout service for a given settings and service class
- Since:
- TC 8.0
-
getGenericService
@Nullable <T extends VcsGenericService> T getGenericService(@NotNull String vcsName, @NotNull Class<T> serviceClass)
Fetches a global vcs-related service for a given Vcs plugins- Parameters:
serviceClass- type of service to fetch- Returns:
- service or null if service not supported
- Since:
- TC 8.0
-
-