public abstract class AbstractMethodDefinitionSource extends java.lang.Object implements MethodDefinitionSource
MethodDefinitionSource.| Constructor and Description |
|---|
AbstractMethodDefinitionSource() |
| Modifier and Type | Method and Description |
|---|---|
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributesgetConfigAttributeDefinitionspublic 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 implementationprotected abstract ConfigAttributeDefinition lookupAttributes(java.lang.reflect.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 upConfigAttributeDefinition that applies to the specified Methodpublic 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 queried