implemented LinkEnricher registration via Enrich annotation

This commit is contained in:
Sebastian Sdorra
2019-01-03 10:52:37 +01:00
parent 471852d360
commit 7821b68d9c
4 changed files with 142 additions and 0 deletions

View File

@@ -1,11 +1,18 @@
package sonia.scm.api.v2.resources;
import sonia.scm.plugin.ExtensionPoint;
/**
* A {@link LinkEnricher} can be used to append hateoas links to a specific json response.
* To register an enricher use the {@link Enrich} annotation or the {@link LinkEnricherRegistry} which is available
* via injection.
*
* <b>Warning:</b> enrichers are always registered as singletons.
*
* @author Sebastian Sdorra
* @since 2.0.0
*/
@ExtensionPoint
@FunctionalInterface
public interface LinkEnricher {