java.lang.Object
org.springframework.aop.support.StaticMethodMatcher
org.springframework.aop.support.StaticMethodMatcherPointcut
org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor
org.acegisecurity.intercept.method.aopalliance.MethodDefinitionSourceAdvisor
- All Implemented Interfaces:
- org.springframework.aop.Advisor, org.springframework.aop.MethodMatcher, org.springframework.core.Ordered, org.springframework.aop.Pointcut, org.springframework.aop.PointcutAdvisor, java.io.Serializable
- public class MethodDefinitionSourceAdvisor
- extends org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor
Advisor driven by a org.acegisecurity.intercept.method.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.
- Version:
- $Id: MethodDefinitionSourceAdvisor.java,v 1.3 2005/11/17 00:55:49 benalex Exp $
| Fields inherited from interface org.springframework.aop.Pointcut |
TRUE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
transactionAttributeSource
private org.acegisecurity.intercept.method.MethodDefinitionSource transactionAttributeSource
MethodDefinitionSourceAdvisor
public MethodDefinitionSourceAdvisor(MethodSecurityInterceptor advice)
matches
public boolean matches(java.lang.reflect.Method m,
java.lang.Class targetClass)
- Description copied from interface:
org.springframework.aop.MethodMatcher
- Perform static checking. If this returns false, or if the isRuntime() method
returns false, no runtime check will be made.