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 MethodDefinitionAttributes

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

All Implemented Interfaces:
  MethodDefinitionSource, ObjectDefinitionSource

    public class MethodDefinitionAttributes

extends AbstractMethodDefinitionSource

Stores a `ConfigAttributeDefinition` for each method signature defined by Commons Attributes.

This class will only detect those attributes which are defined for:

- The class-wide attributes defined for the intercepted class.
- The class-wide attributes defined for interfaces explicitly implemented by the intercepted class.
- The method-specific attributes defined for the intercepted method of the intercepted class.
- The method-specific attributes defined by any explicitly implemented interface if that interface contains a method signature matching that of the intercepted method.

Note that attributes defined against parent classes (either for their methods or interfaces) are not detected. The attributes must be defined against an explicit method or interface on the intercepted class.

Attributes detected that do not implement `ConfigAttribute` will be ignored.

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

Constructor Summary
`MethodDefinitionAttributes()`

Method Summary
`Iterator` | `getConfigAttributeDefinitions()` If available, all of the `ConfigAttributeDefinition`s defined by the implementing class.
`protected ConfigAttributeDefinition` | `lookupAttributes(Method method)` Performs the actual lookup of the relevant `ConfigAttributeDefinition` for the specified `Method` which is subject of the method invocation.
`void` | `setAttributes(Attributes attributes)`

Methods inherited from class org.acegisecurity.intercept.method.AbstractMethodDefinitionSource
`getAttributes, supports`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MethodDefinitionAttributes

    public MethodDefinitionAttributes()

Method Detail

### setAttributes

    public void setAttributes(Attributes attributes)

### getConfigAttributeDefinitions

    public Iterator getConfigAttributeDefinitions()

  Description copied from interface: `ObjectDefinitionSource`
  If available, all of the `ConfigAttributeDefinition`s defined by the implementing class.

  This is used by the `AbstractSecurityInterceptor` to perform startup time validation of each `ConfigAttribute` configured against it.

  Returns:
    an iterator over all the `ConfigAttributeDefinition`s or `null` if unsupported

### lookupAttributes

    protected ConfigAttributeDefinition lookupAttributes(Method method)

  Description copied from class: `AbstractMethodDefinitionSource`
  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.

  Specified by:
    `lookupAttributes` in class `AbstractMethodDefinitionSource`
  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.