Package sonia.scm.api.v2.resources
Class HalEnricherRegistry
java.lang.Object
sonia.scm.api.v2.resources.HalEnricherRegistry
The
HalEnricherRegistry
is responsible for binding HalEnricher
instances to their source types.- Since:
- 2.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns all registeredHalEnricher
for the given type.void
register
(Class sourceType, HalEnricher enricher) Registers a newHalEnricher
for the given source type.
-
Constructor Details
-
HalEnricherRegistry
public HalEnricherRegistry()
-
-
Method Details
-
register
Registers a newHalEnricher
for the given source type.- Parameters:
sourceType
- type of json mapping sourceenricher
- link enricher instance
-
allByType
Returns all registeredHalEnricher
for the given type.- Parameters:
sourceType
- type of json mapping source
-