From fad2b597af4f7358f124a9c243ac44832c3bbe57 Mon Sep 17 00:00:00 2001
From: Luke Taylor This
* The For example:Attributes metadata implementation used for secure method interception.Attributes implementation will return security configuration for classes described using the
- * Secured Java 5 annotation.SecurityAnnotationAttributes implementation can be used to configure a
- * MethodDefinitionAttributes and MethodSecurityInterceptor bean definition (see below).<bean id="attributes"
- * class="org.springframework.security.annotation.SecurityAnnotationAttributes"/><bean id="objectDefinitionSource"
- * class="org.springframework.security.intercept.method.MethodDefinitionAttributes"> <property name="attributes">
- * <ref local="attributes"/> </property></bean><bean id="securityInterceptor"
- * class="org.springframework.security.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.
+ *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.springframework.security.annotation.SecurityAnnotationAttributes"/> + * <bean id="objectDefinitionSource" + * class="org.springframework.security.intercept.method.MethodDefinitionAttributes"> + * <property name="attributes"><ref local="attributes"/></property> + * </bean> + * <bean id="securityInterceptor" + * class="org.springframework.security.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.
*
* @author Mark St.Godard
* @version $Id$
@@ -83,10 +90,6 @@ public class SecurityAnnotationAttributes implements Attributes {
return attributes;
}
- public Collection getAttributes(Class clazz, Class filter) {
- throw new UnsupportedOperationException("Unsupported operation");
- }
-
/**
* Get the Secured attributes for a given target method.
*
@@ -98,18 +101,7 @@ public class SecurityAnnotationAttributes implements Attributes {
*/
public Collection getAttributes(Method method) {
Set