Package jetbrains.vcs.api.impl
Class VcsGenericServiceProviderBase<T extends VcsGenericService>
- java.lang.Object
-
- jetbrains.vcs.api.impl.VcsGenericServiceProviderBase<T>
-
- All Implemented Interfaces:
VcsGenericServiceProvider
- Direct Known Subclasses:
BranchSupportServiceProvider
,ContextAwareUrlSupportServiceProvider
,PersonalSupportServiceProvider
,UrlSupportServiceProvider
public abstract class VcsGenericServiceProviderBase<T extends VcsGenericService> extends Object implements VcsGenericServiceProvider
Created 22.10.12 13:12- Author:
- Eugene Petrenko (eugene.petrenko@jetbrains.com)
-
-
Constructor Summary
Constructors Constructor Description VcsGenericServiceProviderBase(Class<T> service)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <X extends VcsGenericService>
XcreateService(Class<X> service, String vcsName)
Creates VcsGenericService of given typeprotected abstract T
createServiceImpl(String vcsName)
-
-
-
Method Detail
-
createService
@Nullable public final <X extends VcsGenericService> X createService(@NotNull Class<X> service, @NotNull String vcsName)
Description copied from interface:VcsGenericServiceProvider
Creates VcsGenericService of given type- Specified by:
createService
in interfaceVcsGenericServiceProvider
- Type Parameters:
X
- type of service- Parameters:
service
- type of service to create- Returns:
- service if implemented by VCS plugin or null
-
-