org.apache.shiro.spring.security.interceptor
Class AuthorizationAttributeSourceAdvisor
java.lang.Object
org.springframework.aop.support.StaticMethodMatcher
org.springframework.aop.support.StaticMethodMatcherPointcut
org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor
org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor
- All Implemented Interfaces:
- Serializable, Advisor, MethodMatcher, Pointcut, PointcutAdvisor, InitializingBean, Ordered
public class AuthorizationAttributeSourceAdvisor
- extends StaticMethodMatcherPointcutAdvisor
- implements InitializingBean
TODO - complete JavaDoc
- Since:
- 0.1
- Author:
- Les Hazlewood
- 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 |
securityManager
protected SecurityManager securityManager
AuthorizationAttributeSourceAdvisor
public AuthorizationAttributeSourceAdvisor()
- Create a new AuthorizationAttributeSourceAdvisor.
getSecurityManager
public SecurityManager getSecurityManager()
setSecurityManager
public void setSecurityManager(SecurityManager securityManager)
matches
public boolean matches(Method method,
Class targetClass)
- Returns true if the method has any Shiro annotations, false otherwise.
The annotations inspected are:
- Specified by:
matches in interface MethodMatcher
- Parameters:
method - the method to check for a Shiro annotationtargetClass - the class potentially declaring Shiro annotations
- Returns:
- true if the method has a Shiro annotation, false otherwise.
- See Also:
MethodMatcher.matches(java.lang.reflect.Method, Class)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface InitializingBean
- Throws:
Exception
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.