Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acegisecurity.intercept
Interface ObjectDefinitionSource  view ObjectDefinitionSource download ObjectDefinitionSource.java


public interface ObjectDefinitionSource

Implemented by classes that store and can identify the ConfigAttributeDefinition that applies to a given secure object invocation.

Version:
$Id: ObjectDefinitionSource.java,v 1.3 2005/11/17 00:55:51 benalex Exp $

Method Summary
 ConfigAttributeDefinition getAttributes(java.lang.Object object)
          Accesses the ConfigAttributeDefinition that applies to a given secure object.
 java.util.Iterator getConfigAttributeDefinitions()
          If available, all of the ConfigAttributeDefinitions defined by the implementing class.
 boolean supports(java.lang.Class clazz)
          Indicates whether the ObjectDefinitionSource implementation is able to provide ConfigAttributeDefinitions for the indicated secure object type.
 

Method Detail

getAttributes

public ConfigAttributeDefinition getAttributes(java.lang.Object object)
                                        throws java.lang.IllegalArgumentException
Accesses the ConfigAttributeDefinition that applies to a given secure object.

Returns null if no ConfigAttribiteDefinition applies.


getConfigAttributeDefinitions

public java.util.Iterator getConfigAttributeDefinitions()
If available, all of the ConfigAttributeDefinitions defined by the implementing class.

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


supports

public boolean supports(java.lang.Class clazz)
Indicates whether the ObjectDefinitionSource implementation is able to provide ConfigAttributeDefinitions for the indicated secure object type.