#1304 - Update ref docs to properly show how to register custom media types.

Custom media types do NOT require registering a MediaTypeConfigurationProvider implementation with spring.factories. The reference docs must be updated to illustrate this. Also add to the javadocs so users are properly warned.
This commit is contained in:
Greg L. Turnquist
2020-07-28 14:43:31 -05:00
parent 035b742a1f
commit 4720e563f0
2 changed files with 25 additions and 44 deletions

View File

@@ -20,9 +20,12 @@ import java.util.Collection;
import org.springframework.http.MediaType;
/**
* SPI to register a media type configuration provider.
* SPI used to register internal media types through spring.factories.
*
* WARNING: Do NOT implement this interface if you are coding a custom media type. See "Custom media type configuration" in the reference docs.
*
* @author Oliver Drotbohm
* @author Greg Turnquist
* @see HypermediaMappingInformation
*/
public interface MediaTypeConfigurationProvider {