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 with P 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 Details

    • DefaultSecurityParameterNameDiscoverer

      public DefaultSecurityParameterNameDiscoverer()
      Creates a new instance with only the default ParameterNameDiscoverer instances.
    • DefaultSecurityParameterNameDiscoverer

      public DefaultSecurityParameterNameDiscoverer(List<? extends org.springframework.core.ParameterNameDiscoverer> parameterNameDiscovers)
      Creates a new instance that first tries the passed in ParameterNameDiscoverer instances.
      Parameters:
      parameterNameDiscovers - the ParameterNameDiscoverer before trying the defaults. Cannot be null.