public abstract class AbstractMethodDefinitionSource extends Object implements MethodDefinitionSource
MethodDefinitionSource
.Constructor and Description |
---|
AbstractMethodDefinitionSource() |
Modifier and Type | Method and Description |
---|---|
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigAttributeDefinitions
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 securedConfigAttributeDefinition
that applies to the passed objectIllegalArgumentException
- 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 upConfigAttributeDefinition
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 queriedCopyright © 2016. All rights reserved.