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 registeredHalEnricherfor the given type.voidregister(Class sourceType, HalEnricher enricher) Registers a newHalEnricherfor the given source type.
-
Constructor Details
-
HalEnricherRegistry
public HalEnricherRegistry()
-
-
Method Details
-
register
Registers a newHalEnricherfor the given source type.- Parameters:
sourceType- type of json mapping sourceenricher- link enricher instance
-
allByType
Returns all registeredHalEnricherfor the given type.- Parameters:
sourceType- type of json mapping source
-