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, org.springframework.aop.Advisor, org.springframework.aop.MethodMatcher, org.springframework.aop.Pointcut, org.springframework.aop.PointcutAdvisor, org.springframework.core.Ordered
public class MethodDefinitionSourceAdvisor
- extends org.springframework.aop.support.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 1784 2007-02-24 21:00:24Z luke_t $
- Author:
- Ben Alex
- See Also:
- Serialized Form
Fields inherited from interface org.springframework.aop.Pointcut |
TRUE |
Fields inherited from interface org.springframework.aop.MethodMatcher |
TRUE |
Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor |
getAdvice, getOrder, getPointcut, isPerInstance, setAdvice, setOrder |
Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcut |
getClassFilter, getMethodMatcher, setClassFilter |
Methods inherited from class org.springframework.aop.support.StaticMethodMatcher |
isRuntime, matches |
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-2012 Interface21, Inc. All Rights Reserved.