Package jetbrains.vcs.api.impl
Class VcsServiceFactoryImpl
- java.lang.Object
-
- jetbrains.vcs.api.impl.VcsServiceFactoryImpl
-
- All Implemented Interfaces:
VcsServiceFactory
,VcsServiceProvider
public class VcsServiceFactoryImpl extends Object implements VcsServiceFactory
- Author:
- kir, eugene petrenko
-
-
Constructor Summary
Constructors Constructor Description VcsServiceFactoryImpl(Collection<VcsGenericServiceProvider> serviceProviders, Collection<VcsRepositoryServiceProvider> repositoryServiceProviders)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
VcsServiceFactoryImpl
public VcsServiceFactoryImpl(@NotNull Collection<VcsGenericServiceProvider> serviceProviders, @NotNull Collection<VcsRepositoryServiceProvider> repositoryServiceProviders)
-
-
Method Detail
-
getVcsService
@Nullable public <T extends VcsService> T getVcsService(@NotNull VcsSettings settings, @NotNull Class<T> serviceClass)
Description copied from interface:VcsServiceProvider
Fetches a repository layout service of given type by given settings. Null will be returned if service is not implemented- Specified by:
getVcsService
in interfaceVcsServiceProvider
- Type Parameters:
T
- type of service- Parameters:
settings
- RepositoryLayout settings descriptionserviceClass
- type of service- Returns:
- RepositoryLayout service for a given settings and service class
-
getGenericService
@Nullable public <T extends VcsGenericService> T getGenericService(@NotNull String vcsName, @NotNull Class<T> serviceClass)
Description copied from interface:VcsServiceProvider
Fetches a global vcs-related service for a given Vcs plugins- Specified by:
getGenericService
in interfaceVcsServiceProvider
serviceClass
- type of service to fetch- Returns:
- service or null if service not supported
-
-