Class DefaultSecurityParameterNameDiscoverer
- java.lang.Object
-
- org.springframework.core.PrioritizedParameterNameDiscoverer
-
- org.springframework.security.core.parameters.DefaultSecurityParameterNameDiscoverer
-
- All Implemented Interfaces:
org.springframework.core.ParameterNameDiscoverer
public class DefaultSecurityParameterNameDiscoverer extends org.springframework.core.PrioritizedParameterNameDiscoverer
Spring Security's defaultParameterNameDiscoverer
which tries a number ofParameterNameDiscoverer
depending on what is found on the classpath.- Will use an instance of
AnnotationParameterNameDiscoverer
withP
as a valid annotation. If, Spring Data is on the classpath will also add Param annotation. - If Spring 4 is on the classpath, then DefaultParameterNameDiscoverer is added. This
attempts to use JDK 8 information first and falls back to
LocalVariableTableParameterNameDiscoverer
. - If Spring 4 is not on the classpath, then
LocalVariableTableParameterNameDiscoverer
is added directly.
- Since:
- 3.2
- See Also:
AnnotationParameterNameDiscoverer
-
-
Constructor Summary
Constructors Constructor Description DefaultSecurityParameterNameDiscoverer()
Creates a new instance with only the defaultParameterNameDiscoverer
instances.DefaultSecurityParameterNameDiscoverer(java.util.List<? extends org.springframework.core.ParameterNameDiscoverer> parameterNameDiscovers)
Creates a new instance that first tries the passed inParameterNameDiscoverer
instances.
-
-
-
Constructor Detail
-
DefaultSecurityParameterNameDiscoverer
public DefaultSecurityParameterNameDiscoverer()
Creates a new instance with only the defaultParameterNameDiscoverer
instances.
-
DefaultSecurityParameterNameDiscoverer
public DefaultSecurityParameterNameDiscoverer(java.util.List<? extends org.springframework.core.ParameterNameDiscoverer> parameterNameDiscovers)
Creates a new instance that first tries the passed inParameterNameDiscoverer
instances.- Parameters:
parameterNameDiscovers
- theParameterNameDiscoverer
before trying the defaults. Cannot be null.
-
-