Class AnnotationMappingDiscoverer

java.lang.Object
org.springframework.hateoas.server.core.AnnotationMappingDiscoverer
All Implemented Interfaces:
MappingDiscoverer

public class AnnotationMappingDiscoverer extends Object implements MappingDiscoverer
MappingDiscoverer implementation that inspects mappings from a particular annotation.
Author:
Oliver Gierke, Mark Paluch, Greg Turnquist, RĂ©da Housni Alaoui
  • Constructor Details

    • AnnotationMappingDiscoverer

      public AnnotationMappingDiscoverer(Class<? extends Annotation> annotation)
      Creates an AnnotationMappingDiscoverer for the given annotation type. Will lookup the value attribute by default.
      Parameters:
      annotation - must not be null.
    • AnnotationMappingDiscoverer

      public AnnotationMappingDiscoverer(Class<? extends Annotation> annotation, @Nullable String mappingAttributeName)
      Creates an AnnotationMappingDiscoverer for the given annotation type and attribute name.
      Parameters:
      annotation - must not be null.
      mappingAttributeName - if null, it defaults to value.
  • Method Details