org.springframework.security.access.method
Class DelegatingMethodSecurityMetadataSource
java.lang.Object
org.springframework.security.access.method.AbstractMethodSecurityMetadataSource
org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource
- All Implemented Interfaces:
- org.springframework.aop.framework.AopInfrastructureBean, org.springframework.beans.factory.InitializingBean, MethodSecurityMetadataSource, SecurityMetadataSource
public final class DelegatingMethodSecurityMetadataSource
- extends AbstractMethodSecurityMetadataSource
- implements org.springframework.beans.factory.InitializingBean
Automatically tries a series of method definition sources, relying on the first source of metadata
that provides a non-null response. Provides automatic caching of the retrieved metadata.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingMethodSecurityMetadataSource
public DelegatingMethodSecurityMetadataSource()
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
getAttributes
public java.util.Collection<ConfigAttribute> getAttributes(java.lang.reflect.Method method,
java.lang.Class<?> targetClass)
- Specified by:
getAttributes
in interface MethodSecurityMetadataSource
getAllConfigAttributes
public java.util.Collection<ConfigAttribute> getAllConfigAttributes()
- Description copied from interface:
SecurityMetadataSource
- If available, returns all of the
ConfigAttribute
s defined by the implementing class.
This is used by the AbstractSecurityInterceptor
to perform startup time validation of each
ConfigAttribute
configured against it.
- Specified by:
getAllConfigAttributes
in interface SecurityMetadataSource
- Returns:
- the
ConfigAttribute
s or null
if unsupported
setMethodSecurityMetadataSources
public void setMethodSecurityMetadataSources(java.util.List methodSecurityMetadataSources)
getMethodSecurityMetadataSources
public java.util.List<MethodSecurityMetadataSource> getMethodSecurityMetadataSources()