org.springframework.security.access.method
Class DelegatingMethodSecurityMetadataSource

java.lang.Object
  extended by org.springframework.security.access.method.AbstractMethodSecurityMetadataSource
      extended by org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource
All Implemented Interfaces:
AopInfrastructureBean, InitializingBean, MethodSecurityMetadataSource, SecurityMetadataSource

public final class DelegatingMethodSecurityMetadataSource
extends AbstractMethodSecurityMetadataSource
implements 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.

Version:
$Id: DelegatingMethodSecurityMetadataSource.java 3932 2009-10-07 21:08:20Z ltaylor $
Author:
Ben Alex, Luke Taylor

Field Summary
 
Fields inherited from class org.springframework.security.access.method.AbstractMethodSecurityMetadataSource
logger
 
Constructor Summary
DelegatingMethodSecurityMetadataSource()
           
 
Method Summary
 void afterPropertiesSet()
           
 Collection<ConfigAttribute> getAllConfigAttributes()
          If available, returns all of the ConfigAttributes defined by the implementing class.
 Collection<ConfigAttribute> getAttributes(Method method, Class<?> targetClass)
           
 void setMethodSecurityMetadataSources(List methodSecurityMetadataSources)
           
 
Methods inherited from class org.springframework.security.access.method.AbstractMethodSecurityMetadataSource
getAttributes, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingMethodSecurityMetadataSource

public DelegatingMethodSecurityMetadataSource()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

getAttributes

public Collection<ConfigAttribute> getAttributes(Method method,
                                                 Class<?> targetClass)
Specified by:
getAttributes in interface MethodSecurityMetadataSource

getAllConfigAttributes

public Collection<ConfigAttribute> getAllConfigAttributes()
Description copied from interface: SecurityMetadataSource
If available, returns all of the ConfigAttributes 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 ConfigAttributes or null if unsupported

setMethodSecurityMetadataSources

public void setMethodSecurityMetadataSources(List methodSecurityMetadataSources)


Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.