Module net.shibboleth.ext.spring
Package net.shibboleth.ext.spring.util
Class AnnotationParameterNameDiscoverer
- java.lang.Object
-
- org.springframework.core.PrioritizedParameterNameDiscoverer
-
- org.springframework.core.DefaultParameterNameDiscoverer
-
- net.shibboleth.ext.spring.util.AnnotationParameterNameDiscoverer
-
- All Implemented Interfaces:
ParameterNameDiscoverer
public class AnnotationParameterNameDiscoverer extends DefaultParameterNameDiscoverer implements ParameterNameDiscoverer
An implementation ofParameterNameDiscovererthat is driven by theParameterNameAnnotation.- Since:
- 5.3.0 (IdP 3.3.0)
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.Loggerloglog.
-
Constructor Summary
Constructors Constructor Description AnnotationParameterNameDiscoverer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private StringgetMyAnnotation(Annotation[] annotations)Given the annotations for each parameter is it one of ours?String[]getParameterNames(Constructor<?> ctor)String[]getParameterNames(Method method)-
Methods inherited from class org.springframework.core.PrioritizedParameterNameDiscoverer
addDiscoverer
-
-
-
-
Method Detail
-
getParameterNames
@Nullable public String[] getParameterNames(Method method)
- Specified by:
getParameterNamesin interfaceParameterNameDiscoverer- Overrides:
getParameterNamesin classPrioritizedParameterNameDiscoverer
-
getMyAnnotation
@Nullable private String getMyAnnotation(Annotation[] annotations)
Given the annotations for each parameter is it one of ours?- Parameters:
annotations- the annotations for the parameter- Returns:
- the "name" if one of ours. null otherwise
-
getParameterNames
public String[] getParameterNames(Constructor<?> ctor)
If we cannot do anything pass to the default discoverer.
- Specified by:
getParameterNamesin interfaceParameterNameDiscoverer- Overrides:
getParameterNamesin classPrioritizedParameterNameDiscoverer
-
-