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.

@ExtensionPoint @FunctionalInterface public interface HalEnricher
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 Type
    Method
    Description
    void
    Enriches the response with hal specific attributes.
  • Method Details

    • enrich

      void enrich(HalEnricherContext context, HalAppender appender)
      Enriches the response with hal specific attributes.
      Parameters:
      context - contains the source for the json mapping and related objects
      appender - can be used to append links or embedded objects to the json response