|
Spring Security Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.intercept.method.DelegatingMethodDefinitionSource
public final class DelegatingMethodDefinitionSource
Automatically tries a series of method definition sources, relying on the first source of metadata that provides a non-null response.
| Constructor Summary | |
|---|---|
DelegatingMethodDefinitionSource()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
ConfigAttributeDefinition |
getAttributes(Method method,
Class targetClass)
|
ConfigAttributeDefinition |
getAttributes(Object object)
Accesses the ConfigAttributeDefinition that applies to a given secure object. |
Collection |
getConfigAttributeDefinitions()
If available, returns all of the ConfigAttributeDefinitions defined by the implementing class. |
void |
setMethodDefinitionSources(List methodDefinitionSources)
|
boolean |
supports(Class clazz)
Indicates whether the ObjectDefinitionSource implementation is able to provide
ConfigAttributeDefinitions for the indicated secure object type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingMethodDefinitionSource()
| Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanException
public ConfigAttributeDefinition getAttributes(Method method,
Class targetClass)
getAttributes in interface MethodDefinitionSource
public ConfigAttributeDefinition getAttributes(Object object)
throws IllegalArgumentException
ObjectDefinitionSourceConfigAttributeDefinition that applies to a given secure object.Returns
null if no ConfigAttribiteDefinition applies.
getAttributes in interface ObjectDefinitionSourceobject - the object being secured
ConfigAttributeDefinition that applies to the passed object
IllegalArgumentException - if the passed object is not of a type supported by the
ObjectDefinitionSource implementationpublic Collection getConfigAttributeDefinitions()
ObjectDefinitionSourceConfigAttributeDefinitions defined by the implementing class.
This is used by the AbstractSecurityInterceptor to perform startup time validation of each
ConfigAttribute configured against it.
getConfigAttributeDefinitions in interface ObjectDefinitionSourceConfigAttributeDefinitions or null if unsupportedpublic boolean supports(Class clazz)
ObjectDefinitionSourceObjectDefinitionSource implementation is able to provide
ConfigAttributeDefinitions for the indicated secure object type.
supports in interface ObjectDefinitionSourceclazz - the class that is being queried
public void setMethodDefinitionSources(List methodDefinitionSources)
|
Spring Security Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||