Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.acegisecurity.intercept.method
Class AbstractMethodDefinitionSource

    java.lang.Object
      org.acegisecurity.intercept.method.AbstractMethodDefinitionSource

All Implemented Interfaces:
  MethodDefinitionSource, ObjectDefinitionSource

Direct Known Subclasses:
  MethodDefinitionAttributes, MethodDefinitionMap

    public abstract class AbstractMethodDefinitionSource

extends Object
implements MethodDefinitionSource

Abstract implementation of `MethodDefinitionSource`.

Version:
  $Id: AbstractMethodDefinitionSource.java,v 1.5 2005/11/17 00:56:09 benalex Exp $
Author:
  Ben Alex

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.acegisecurity.intercept.ObjectDefinitionSource
`getConfigAttributeDefinitions`

Constructor Detail

### AbstractMethodDefinitionSource

    public AbstractMethodDefinitionSource()

Method Detail

### getAttributes

    public ConfigAttributeDefinition getAttributes(Object object)
                                            throws IllegalArgumentException

  Description copied from interface: `ObjectDefinitionSource`
  Accesses the `ConfigAttributeDefinition` that applies to a given secure object.

  Returns `null` if no `ConfigAttribiteDefinition` applies.

  Specified by:
    `getAttributes` in interface `ObjectDefinitionSource`
  Parameters:
    `object` - the object being secured
  Returns:
    the `ConfigAttributeDefinition` that applies to the passed object
  Throws:
    `IllegalArgumentException` - if the passed object is not of a type supported by the `ObjectDefinitionSource` implementation

### supports

    public boolean supports(Class clazz)

  Description copied from interface: `ObjectDefinitionSource`
  Indicates whether the `ObjectDefinitionSource` implementation is able to provide `ConfigAttributeDefinition`s for the indicated secure object type.

  Specified by:
    `supports` in interface `ObjectDefinitionSource`
  Parameters:
    `clazz` - the class that is being queried
  Returns:
    true if the implementation can process the indicated class

### lookupAttributes

    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.

  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.

  Parameters:
    `method` - the method being invoked for which configuration attributes should be looked up
  Returns:
    the `ConfigAttributeDefinition` that applies to the specified `Method`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2005 Acegi Technology Pty Limited. All Rights Reserved.