This commit is contained in:
Luke Taylor 2008-01-10 12:42:02 +00:00
parent dac911ac08
commit 518ccada8c
1 changed files with 10 additions and 6 deletions

View File

@ -30,12 +30,15 @@ import org.springframework.security.intercept.method.MethodDefinitionSource;
/** /**
* Advisor driven by a {@link MethodDefinitionSource}, used to exclude a {@link MethodSecurityInterceptor} from * Advisor driven by a {@link MethodDefinitionSource}, used to exclude a {@link MethodSecurityInterceptor} from
* public (ie non-secure) methods.<p>Because the AOP framework caches advice calculations, this is normally faster * public (ie non-secure) methods.<p>Because the AOP framework caches advice calculations, this is normally faster
* than just letting the <code>MethodSecurityInterceptor</code> run and find out itself that it has no work to do.</p> * than just letting the <code>MethodSecurityInterceptor</code> run and find out itself that it has no work to do.
* <p>This class also allows the use of Spring's <code>DefaultAdvisorAutoProxyCreator</code>, which makes * <p>
* This class also allows the use of Spring's
* {@link org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator}, which makes
* configuration easier than setup a <code>ProxyFactoryBean</code> for each object requiring security. Note that * configuration easier than setup a <code>ProxyFactoryBean</code> for each object requiring security. Note that
* autoproxying is not supported for BeanFactory implementations, as post-processing is automatic only for application * autoproxying is not supported for BeanFactory implementations, as post-processing is automatic only for application
* contexts.</p> * contexts.
* <p>Based on Spring's TransactionAttributeSourceAdvisor.</p> * <p>
* Based on Spring's TransactionAttributeSourceAdvisor.
* *
* @author Ben Alex * @author Ben Alex
* @version $Id$ * @version $Id$
@ -83,8 +86,9 @@ public class MethodDefinitionSourceAdvisor extends AbstractPointcutAdvisor {
/** /**
* Represents a <code>MethodInvocation</code>. * Represents a <code>MethodInvocation</code>.
* <p>Required as <code>MethodDefinitionSource</code> only supports lookup of configuration attributes for * <p>
* <code>MethodInvocation</code>s.</p> * Required as <code>MethodDefinitionSource</code> only supports lookup of configuration attributes for
* <code>MethodInvocation</code>s.
*/ */
class InternalMethodInvocation implements MethodInvocation { class InternalMethodInvocation implements MethodInvocation {
private Method method; private Method method;