Java 5 Annotation Attributes metadata implementation used for secure method interception.This
Attributes implementation will return security configuration for classes described using the
Secured Java 5 annotation.
The SecurityAnnotationAttributes implementation can be used to configure a
MethodDefinitionAttributes and MethodSecurityInterceptor bean definition (see below).
For example: <bean id="attributes"
class="org.acegisecurity.annotation.SecurityAnnotationAttributes"/><bean id="objectDefinitionSource"
class="org.acegisecurity.intercept.method.MethodDefinitionAttributes"> <property name="attributes">
<ref local="attributes"/> </property></bean><bean id="securityInterceptor"
class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor"> . . .
<property name="objectDefinitionSource"> <ref local="objectDefinitionSource"/> </property>
</bean>
These security annotations are similiar to the Commons Attributes approach, however they are using Java 5
language-level metadata support.
This class should be used with Spring 2.0 or above, as it relies upon utility classes in Spring 2.0 for
correct introspection of annotations on bridge methods.
author: Mark St.Godard version: $Id: SecurityAnnotationAttributes.java 1756 2006-11-17 02:17:45Z benalex $ See Also: org.acegisecurity.annotation.Secured |