Class PathPatternRequestMatcherBuilderFactoryBean
java.lang.Object
org.springframework.security.config.web.PathPatternRequestMatcherBuilderFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.FactoryBean<PathPatternRequestMatcher.Builder>
,org.springframework.context.ApplicationContextAware
public final class PathPatternRequestMatcherBuilderFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<PathPatternRequestMatcher.Builder>, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.BeanFactoryAware
Use this factory bean to configure the
PathPatternRequestMatcher.Builder
bean
used to create request matchers in AuthorizeHttpRequestsConfigurer
and other
parts of the DSL.- Since:
- 6.5
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct this factory bean using the defaultPathPatternParser
PathPatternRequestMatcherBuilderFactoryBean
(org.springframework.web.util.pattern.PathPatternParser parser) Construct this factory bean using thisPathPatternParser
. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
void
setApplicationContext
(org.springframework.context.ApplicationContext context) void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) void
setBeanName
(String name) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
PathPatternRequestMatcherBuilderFactoryBean
public PathPatternRequestMatcherBuilderFactoryBean()Construct this factory bean using the defaultPathPatternParser
If you are using Spring MVC, it will use the Spring MVC instance.
-
PathPatternRequestMatcherBuilderFactoryBean
public PathPatternRequestMatcherBuilderFactoryBean(org.springframework.web.util.pattern.PathPatternParser parser) Construct this factory bean using thisPathPatternParser
.If you are using Spring MVC, it is likely incorrect to call this constructor. Please call the default constructor instead.
- Parameters:
parser
- thePathPatternParser
to use
-
-
Method Details
-
getObject
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<PathPatternRequestMatcher.Builder>
- Throws:
Exception
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<PathPatternRequestMatcher.Builder>
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
setBeanName
- Specified by:
setBeanName
in interfaceorg.springframework.beans.factory.BeanNameAware
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
-