|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acegisecurity.intercept.method.AbstractMethodDefinitionSource
org.acegisecurity.intercept.method.MethodDefinitionAttributes
public class MethodDefinitionAttributes
Stores a ConfigAttributeDefinition for each method signature defined by Commons Attributes.
This class will only detect those attributes which are defined for:
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.
| Constructor Summary | |
|---|---|
MethodDefinitionAttributes()
|
|
| Method Summary | |
|---|---|
Iterator |
getConfigAttributeDefinitions()
If available, all of the ConfigAttributeDefinitions 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 |
|---|
public MethodDefinitionAttributes()
| Method Detail |
|---|
public Iterator getConfigAttributeDefinitions()
ObjectDefinitionSourceConfigAttributeDefinitions defined by the implementing class.This
is used by the AbstractSecurityInterceptor to perform startup time validation of each
ConfigAttribute configured against it.
ConfigAttributeDefinitions or null if unsupportedprotected ConfigAttributeDefinition lookupAttributes(Method method)
AbstractMethodDefinitionSourceConfigAttributeDefinition 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.
lookupAttributes in class AbstractMethodDefinitionSourcemethod - the method being invoked for which configuration attributes should be looked up
ConfigAttributeDefinition that applies to the specified Methodpublic void setAttributes(Attributes attributes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||