public class MethodDefinitionSourceAdvisor
extends org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor
MethodDefinitionSource
, used to exclude a MethodSecurityInterceptor
from
public (ie non-secure) methods.Because the AOP framework caches advice calculations, this is normally faster
than just letting the MethodSecurityInterceptor
run and find out itself that it has no work to do.
This class also allows the use of Spring's DefaultAdvisorAutoProxyCreator
, which makes
configuration easier than setup a ProxyFactoryBean
for each object requiring security. Note that
autoproxying is not supported for BeanFactory implementations, as post-processing is automatic only for application
contexts.
Based on Spring's TransactionAttributeSourceAdvisor.
Constructor and Description |
---|
MethodDefinitionSourceAdvisor(MethodSecurityInterceptor advice) |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(Method m,
Class targetClass) |
getAdvice, getOrder, getPointcut, isPerInstance, setAdvice, setOrder
public MethodDefinitionSourceAdvisor(MethodSecurityInterceptor advice)
Copyright © 2015. All rights reserved.