Class 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:
    AnnotationParameterNameDiscoverer
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultSecurityParameterNameDiscoverer()
      Creates a new instance with only the default ParameterNameDiscoverer instances.
      DefaultSecurityParameterNameDiscoverer​(java.util.List<? extends org.springframework.core.ParameterNameDiscoverer> parameterNameDiscovers)
      Creates a new instance that first tries the passed in ParameterNameDiscoverer instances.
    • Method Summary

      • Methods inherited from class org.springframework.core.PrioritizedParameterNameDiscoverer

        addDiscoverer, getParameterNames, getParameterNames
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultSecurityParameterNameDiscoverer

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

        public DefaultSecurityParameterNameDiscoverer​(java.util.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.