69
69
*/
70
70
public class InterceptMethodsBeanDefinitionDecorator implements BeanDefinitionDecorator {
71
71
72
- private final InternalAuthorizationManagerInterceptMethodsBeanDefinitionDecorator authorizationManagerDelegate =
73
- new InternalAuthorizationManagerInterceptMethodsBeanDefinitionDecorator ();
72
+ private final InternalAuthorizationManagerInterceptMethodsBeanDefinitionDecorator authorizationManagerDelegate = new InternalAuthorizationManagerInterceptMethodsBeanDefinitionDecorator ();
73
+
74
74
private final BeanDefinitionDecorator delegate = new InternalInterceptMethodsBeanDefinitionDecorator ();
75
75
76
76
@ Override
@@ -198,7 +198,8 @@ private boolean matches(String mappedName, String methodName) {
198
198
}
199
199
200
200
private boolean prefixMatches (String mappedName , String methodName ) {
201
- return mappedName .endsWith ("*" ) && methodName .startsWith (mappedName .substring (0 , mappedName .length () - 1 ));
201
+ return mappedName .endsWith ("*" )
202
+ && methodName .startsWith (mappedName .substring (0 , mappedName .length () - 1 ));
202
203
}
203
204
204
205
private boolean suffixMatches (String mappedName , String methodName ) {
@@ -218,7 +219,8 @@ private static class PointcutMatchingAuthorizationManager implements Authorizati
218
219
@ Override
219
220
public AuthorizationDecision check (Supplier <Authentication > authentication , MethodInvocation object ) {
220
221
for (Map .Entry <Pointcut , AuthorizationManager <MethodInvocation >> entry : this .managers .entrySet ()) {
221
- Class <?> targetClass = (object .getThis () != null ) ? AopUtils .getTargetClass (object .getThis ()) : null ;
222
+ Class <?> targetClass = (object .getThis () != null ) ? AopUtils .getTargetClass (object .getThis ())
223
+ : null ;
222
224
if (entry .getKey ().getClassFilter ().matches (targetClass )
223
225
&& entry .getKey ().getMethodMatcher ().matches (object .getMethod (), targetClass )) {
224
226
return entry .getValue ().check (authentication , object );
@@ -251,7 +253,9 @@ void setExpressionHandler(SecurityExpressionHandler<MethodInvocation> expression
251
253
}
252
254
253
255
}
256
+
254
257
}
258
+
255
259
/**
256
260
* This is the real class which does the work. We need access to the ParserContext in
257
261
* order to do bean registration.
0 commit comments