java.lang.Object
org.acegisecurity.intercept.method.AbstractMethodDefinitionSource
- All Implemented Interfaces:
- MethodDefinitionSource, org.acegisecurity.intercept.ObjectDefinitionSource
- Direct Known Subclasses:
- MethodDefinitionAttributes, MethodDefinitionMap
- public abstract class AbstractMethodDefinitionSource
- extends java.lang.Object
- implements MethodDefinitionSource
Abstract implementation of MethodDefinitionSource.
- Version:
- $Id: AbstractMethodDefinitionSource.java,v 1.5 2005/11/17 00:56:09 benalex Exp $
|
Method Summary |
ConfigAttributeDefinition |
getAttributes(java.lang.Object object)
Accesses the ConfigAttributeDefinition that applies to a
given secure object. |
protected abstract ConfigAttributeDefinition |
lookupAttributes(java.lang.reflect.Method method)
Performs the actual lookup of the relevant
ConfigAttributeDefinition for the specified
Method which is subject of the method invocation. |
boolean |
supports(java.lang.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 |
logger
private static final org.apache.commons.logging.Log logger
AbstractMethodDefinitionSource
public AbstractMethodDefinitionSource()
getAttributes
public ConfigAttributeDefinition getAttributes(java.lang.Object object)
throws java.lang.IllegalArgumentException
- Description copied from interface:
org.acegisecurity.intercept.ObjectDefinitionSource
- Accesses the
ConfigAttributeDefinition that applies to a
given secure object.
Returns null if no ConfigAttribiteDefinition
applies.
- Specified by:
getAttributes in interface org.acegisecurity.intercept.ObjectDefinitionSource
supports
public boolean supports(java.lang.Class clazz)
- Description copied from interface:
org.acegisecurity.intercept.ObjectDefinitionSource
- Indicates whether the
ObjectDefinitionSource implementation
is able to provide ConfigAttributeDefinitions for the
indicated secure object type.
- Specified by:
supports in interface org.acegisecurity.intercept.ObjectDefinitionSource
lookupAttributes
protected abstract ConfigAttributeDefinition lookupAttributes(java.lang.reflect.Method method)
- Performs the actual lookup of the relevant
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.