|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ConfigAttributeDefinition s defined by the implementing class. |
void |
setMethodDefinitionSources(List methodDefinitionSources)
|
boolean |
supports(Class clazz)
Indicates whether the ObjectDefinitionSource implementation is able to provide
ConfigAttributeDefinition s 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 InitializingBean
Exception
public ConfigAttributeDefinition getAttributes(Method method, Class targetClass)
getAttributes
in interface MethodDefinitionSource
public ConfigAttributeDefinition getAttributes(Object object) throws IllegalArgumentException
ObjectDefinitionSource
ConfigAttributeDefinition
that applies to a given secure object.Returns
null
if no ConfigAttribiteDefinition
applies.
getAttributes
in interface ObjectDefinitionSource
object
- 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()
ObjectDefinitionSource
ConfigAttributeDefinition
s 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 ObjectDefinitionSource
ConfigAttributeDefinition
s or null
if unsupportedpublic boolean supports(Class clazz)
ObjectDefinitionSource
ObjectDefinitionSource
implementation is able to provide
ConfigAttributeDefinition
s for the indicated secure object type.
supports
in interface ObjectDefinitionSource
clazz
- 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 |