|
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.AbstractMethodDefinitionSource
public abstract class AbstractMethodDefinitionSource
Abstract implementation of MethodDefinitionSource
.
Constructor Summary | |
---|---|
AbstractMethodDefinitionSource()
|
Method Summary | |
---|---|
ConfigAttributeDefinition |
getAttributes(Object object)
Accesses the ConfigAttributeDefinition that applies to a given secure object. |
protected abstract ConfigAttributeDefinition |
lookupAttributes(Method method)
Performs the actual lookup of the relevant ConfigAttributeDefinition for the specified
Method which is subject of the method invocation. |
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 |
Methods inherited from interface org.springframework.security.intercept.method.MethodDefinitionSource |
---|
getAttributes |
Methods inherited from interface org.springframework.security.intercept.ObjectDefinitionSource |
---|
getConfigAttributeDefinitions |
Constructor Detail |
---|
public AbstractMethodDefinitionSource()
Method Detail |
---|
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
implementationprotected abstract ConfigAttributeDefinition lookupAttributes(Method method)
ConfigAttributeDefinition
for the specified
Method
which is subject of the method invocation.Provided so subclasses need only to
provide one basic method to properly interface with the MethodDefinitionSource
.
Returns null
if there are no matching attributes for the method.
method
- the method being invoked for which configuration attributes should be looked up
ConfigAttributeDefinition
that applies to the specified Method
public 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
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |