Package sonia.scm.api.v2.resources
Interface HalEnricher
- All Known Implementing Classes:
ConfigurationAdapterBase
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
HalEnricher can be used to append hal specific attributes, such as links, to the json response.
To register an enricher use the Enrich annotation or the HalEnricherRegistry which is available
via injection.
Warning: enrichers are always registered as singletons.- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidenrich(HalEnricherContext context, HalAppender appender) Enriches the response with hal specific attributes.
-
Method Details
-
enrich
Enriches the response with hal specific attributes.- Parameters:
context- contains the source for the json mapping and related objectsappender- can be used to append links or embedded objects to the json response
-