Package sonia.scm.repository.spi
Class HookContextProvider
java.lang.Object
sonia.scm.repository.spi.HookContextProvider
Repository type specific provider for
HookContext
.- Since:
- 1.33
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HookMessageProvider
Creates a new provider specificHookMessageProvider
or throws aHookFeatureIsNotSupportedException
.Return the provider specificHookBranchProvider
or throws aHookFeatureIsNotSupportedException
.Return the provider specificHookChangesetProvider
or throws aHookFeatureIsNotSupportedException
.Return the provider specificHookMergeDetectionProvider
or throws aHookFeatureIsNotSupportedException
.final HookMessageProvider
Return the provider specificHookMessageProvider
or throws aHookFeatureIsNotSupportedException
.abstract Set<HookFeature>
Returns a set of supported hook features of the client.Return the provider specificHookTagProvider
or throws aHookFeatureIsNotSupportedException
.
-
Constructor Details
-
HookContextProvider
public HookContextProvider()
-
-
Method Details
-
getMessageProvider
Return the provider specificHookMessageProvider
or throws aHookFeatureIsNotSupportedException
. The method will throw aHookException
if the client is already disconnected.- Returns:
- provider specific
HookMessageProvider
-
getSupportedFeatures
Returns a set of supported hook features of the client.- Returns:
- supported features
-
getBranchProvider
Return the provider specificHookBranchProvider
or throws aHookFeatureIsNotSupportedException
.- Returns:
- provider specific
HookBranchProvider
- Since:
- 1.45
-
getTagProvider
Return the provider specificHookTagProvider
or throws aHookFeatureIsNotSupportedException
.- Returns:
- provider specific
HookTagProvider
- Since:
- 1.50
-
getChangesetProvider
Return the provider specificHookChangesetProvider
or throws aHookFeatureIsNotSupportedException
.- Returns:
- provider specific
HookChangesetProvider
-
getMergeDetectionProvider
Return the provider specificHookMergeDetectionProvider
or throws aHookFeatureIsNotSupportedException
.- Returns:
- provider specific
HookMergeDetectionProvider
-
getModificationsProvider
-
createMessageProvider
Creates a new provider specificHookMessageProvider
or throws aHookFeatureIsNotSupportedException
.- Returns:
- provider specific
HookChangesetProvider
-