org.acegisecurity.intercept.method.aopalliance
Class MethodDefinitionSourceAdvisor
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:
- Serializable, Advisor, MethodMatcher, Pointcut, PointcutAdvisor, Ordered
public class MethodDefinitionSourceAdvisor
- extends StaticMethodMatcherPointcutAdvisor
Advisor driven by a 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 1496 2006-05-23 13:38:33Z benalex $
- Author:
- Ben Alex
- See Also:
- Serialized Form
| 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 |
MethodDefinitionSourceAdvisor
public MethodDefinitionSourceAdvisor(MethodSecurityInterceptor advice)
matches
public boolean matches(Method m,
Class targetClass)
Copyright © 2004-2006 Acegi Technology Pty Limited. All Rights Reserved.