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
ConfigAttributeDefinitions 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
ConfigAttributeDefinitions for the indicated secure object type. |
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic ConfigAttributeDefinition getAttributes(java.lang.reflect.Method method, java.lang.Class targetClass)
getAttributes in interface MethodDefinitionSourcepublic ConfigAttributeDefinition getAttributes(java.lang.Object object) throws java.lang.IllegalArgumentException
ObjectDefinitionSourceConfigAttributeDefinition that applies to a given secure object.Returns
null if no ConfigAttribiteDefinition applies.
getAttributes in interface ObjectDefinitionSourceobject - 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()
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(java.lang.Class clazz)
ObjectDefinitionSourceObjectDefinitionSource implementation is able to provide
ConfigAttributeDefinitions for the indicated secure object type.supports in interface ObjectDefinitionSourceclazz - the class that is being queriedpublic void setMethodDefinitionSources(java.util.List methodDefinitionSources)