diff --git a/src/main/java/org/springframework/hateoas/ResourceEnricher.java b/src/main/java/org/springframework/hateoas/ResourceProcessor.java similarity index 71% rename from src/main/java/org/springframework/hateoas/ResourceEnricher.java rename to src/main/java/org/springframework/hateoas/ResourceProcessor.java index 76107041..fc0e553b 100644 --- a/src/main/java/org/springframework/hateoas/ResourceEnricher.java +++ b/src/main/java/org/springframework/hateoas/ResourceProcessor.java @@ -16,19 +16,20 @@ package org.springframework.hateoas; /** - * SPI interface to allow components to enrich the {@link ResourceSupport} instances returned from Spring MVC + * SPI interface to allow components to process the {@link ResourceSupport} instances returned from Spring MVC * controllers. * * @see Resource * @see Resources * @author Oliver Gierke */ -public interface ResourceEnricher { +public interface ResourceProcessor { /** - * Enriches the given resource, add links, alter the domain data etc. + * Processes the given resource, add links, alter the domain data etc. * * @param resource + * @return the processed resource */ - void enrich(T resource); + T enrich(T resource); }