From 2028507bf8120feeb702bfe53f04c26bf2414015 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Tue, 10 Jan 2023 10:38:28 -0700 Subject: [PATCH] Fix Typo in Sample Closes gh-11095 --- .../ROOT/pages/servlet/authorization/method-security.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/modules/ROOT/pages/servlet/authorization/method-security.adoc b/docs/modules/ROOT/pages/servlet/authorization/method-security.adoc index 8b194fd275..5b485adae9 100644 --- a/docs/modules/ROOT/pages/servlet/authorization/method-security.adoc +++ b/docs/modules/ROOT/pages/servlet/authorization/method-security.adoc @@ -547,7 +547,7 @@ class MethodSecurityConfig { @Bean @Role(BeanDefinition.ROLE_INFRASTRUCTURE) public Advisor customAuthorize(AuthorizationManager rules) { - AnnotationMethodMatcher pattern = new AnnotationMethodMatcher(MySecurityAnnotation.class); + AnnotationMatchingPointcut pattern = new AnnotationMatchingPointcut(MySecurityAnnotation.class); AuthorizationManagerAfterMethodInterceptor interceptor = new AuthorizationManagerAfterMethodInterceptor(pattern, rules); interceptor.setOrder(AuthorizationInterceptorsOrder.POST_AUTHORIZE_ADVISOR_ORDER.getOrder() + 1); return interceptor; @@ -563,7 +563,7 @@ class MethodSecurityConfig { @Bean @Role(BeanDefinition.ROLE_INFRASTRUCTURE) fun customAuthorize(rules : AuthorizationManager) : Advisor { - val pattern = AnnotationMethodMatcher(MySecurityAnnotation::class.java); + val pattern = AnnotationMatchingPointcut(MySecurityAnnotation::class.java); val interceptor = AuthorizationManagerAfterMethodInterceptor(pattern, rules); interceptor.setOrder(AuthorizationInterceptorsOrder.POST_AUTHORIZE_ADVISOR_ORDER.getOrder() + 1); return interceptor;