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 default
ParameterNameDiscoverer
which tries a number of
ParameterNameDiscoverer
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:
-
Constructor Summary
ConstructorDescriptionCreates a new instance with only the defaultParameterNameDiscoverer
instances.DefaultSecurityParameterNameDiscoverer
(List<? extends org.springframework.core.ParameterNameDiscoverer> parameterNameDiscovers) Creates a new instance that first tries the passed inParameterNameDiscoverer
instances. -
Method Summary
Methods inherited from class org.springframework.core.PrioritizedParameterNameDiscoverer
addDiscoverer, getParameterNames, getParameterNames
-
Constructor Details
-
DefaultSecurityParameterNameDiscoverer
public DefaultSecurityParameterNameDiscoverer()Creates a new instance with only the defaultParameterNameDiscoverer
instances. -
DefaultSecurityParameterNameDiscoverer
public DefaultSecurityParameterNameDiscoverer(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.
-