public final class DelegatingMethodDefinitionSource extends java.lang.Object implements MethodDefinitionSource, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
DelegatingMethodDefinitionSource() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
ConfigAttributeDefinition |
getAttributes(java.lang.reflect.Method method,
java.lang.Class targetClass) |
ConfigAttributeDefinition |
getAttributes(java.lang.Object object)
Accesses the
ConfigAttributeDefinition that applies to a given secure object. |
java.util.Collection |
getConfigAttributeDefinitions()
If available, returns all of the
ConfigAttributeDefinition s defined by the implementing class. |
void |
setMethodDefinitionSources(java.util.List methodDefinitionSources) |
boolean |
supports(java.lang.Class clazz)
Indicates whether the
ObjectDefinitionSource implementation is able to provide
ConfigAttributeDefinition s for the indicated secure object type. |
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public ConfigAttributeDefinition getAttributes(java.lang.reflect.Method method, java.lang.Class targetClass)
getAttributes
in interface MethodDefinitionSource
public ConfigAttributeDefinition getAttributes(java.lang.Object object) throws java.lang.IllegalArgumentException
ObjectDefinitionSource
ConfigAttributeDefinition
that applies to a given secure object.Returns
null
if no ConfigAttribiteDefinition
applies.
getAttributes
in interface ObjectDefinitionSource
object
- the object being securedConfigAttributeDefinition
that applies to the passed objectjava.lang.IllegalArgumentException
- if the passed object is not of a type supported by the
ObjectDefinitionSource
implementationpublic java.util.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(java.lang.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 queriedpublic void setMethodDefinitionSources(java.util.List methodDefinitionSources)