|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.hateoas.core.AnnotationMappingDiscoverer
public class AnnotationMappingDiscoverer
MappingDiscoverer implementation that inspects mappings from a particular annotation.
| Constructor Summary | |
|---|---|
AnnotationMappingDiscoverer(Class<? extends Annotation> annotation)
Creates an AnnotationMappingDiscoverer for the given annotation type. |
|
AnnotationMappingDiscoverer(Class<? extends Annotation> annotation,
String mappingAttributeName)
Creates an AnnotationMappingDiscoverer for the given annotation type and attribute name. |
|
| Method Summary | |
|---|---|
String |
getMapping(Class<?> type)
Returns the mapping associated with the given type. |
String |
getMapping(Class<?> type,
Method method)
Returns the mapping for the given Method invoked on the given type. |
String |
getMapping(Method method)
Returns the mapping associated with the given Method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationMappingDiscoverer(Class<? extends Annotation> annotation)
AnnotationMappingDiscoverer for the given annotation type. Will lookup the value
attribute by default.
annotation - must not be null.
public AnnotationMappingDiscoverer(Class<? extends Annotation> annotation,
String mappingAttributeName)
AnnotationMappingDiscoverer for the given annotation type and attribute name.
annotation - must not be null.mappingAttributeName - if null, it defaults to value.| Method Detail |
|---|
public String getMapping(Class<?> type)
MappingDiscoverer
getMapping in interface MappingDiscoverertype - must not be null.
public String getMapping(Method method)
MappingDiscovererMethod. This will include the type-level mapping.
getMapping in interface MappingDiscoverermethod - must not be null.
public String getMapping(Class<?> type,
Method method)
MappingDiscovererMethod invoked on the given type. This can be used to calculate the
mapping for a super type method being invoked on a sub-type with a type mapping.
getMapping in interface MappingDiscoverertype - must not be null.method - must not be null.
|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||