org.springframework.metadata.commons
Class CommonsAttributes
- public class CommonsAttributes
- implements Attributes
Implementation of the Spring Attributes facade for Commons Attributes.
Please see
the Commons Attributes documentation for information on how to use the attribute compiler.
As of December 2003, follow the Javadocs to the AttributeCompiler class to see how the
Ant task works. Note that you need to put the follow Jars in your $ANT_HOME/lib directory for
the Common Attributes compiler to work:
- Commons Attributes compiler jar
- the xjavadoc Jar (from XDoclet)
- commons-collection.jar (from Jakarta Commons)
You need to perform the attribute compilation
step before compiling your source.
See build.xml in the tests for package org.springframework.aop.autoproxy.metadata
for an example of the required Ant scripting. The header of this build script
includes some quick, and hopefully useful, hints on using Commons Attributes.
The source files in the same package (TxClass and TxClassWithClassAttribute)
illustrate attribute usage in source files.
The Spring project does not support usage of specific attributes implementations.
Please refer to the appropriate site and mailing list.- Author:
- Rod Johnson
- Version: $Id: CommonsAttributes.java,v 1.1 2003/12/13 00:10:21 johnsonr Exp $
getAttributes
public Collection getAttributes(Class targetClass)
- See Also:
- org.springframework.metadata.Attributes.getAttributes(java.lang.Class)
getAttributes
public Collection getAttributes(Class targetClass, Class filter)
- See Also:
- org.springframework.metadata.Attributes.getAttributes(java.lang.Class,java.lang.Class)
getAttributes
public Collection getAttributes(Method targetMethod)
- See Also:
- org.springframework.metadata.Attributes.getAttributes(java.lang.reflect.Method)
getAttributes
public Collection getAttributes(Method targetMethod, Class filter)
- See Also:
- org.springframework.metadata.Attributes.getAttributes(java.lang.reflect.Method,java.lang.Class)
getAttributes
public Collection getAttributes(Field targetField)
- See Also:
- org.springframework.metadata.Attributes.getAttributes(java.lang.reflect.Field)
getAttributes
public Collection getAttributes(Field targetField, Class filter)
- See Also:
- org.springframework.metadata.Attributes.getAttributes(java.lang.reflect.Field,java.lang.Class)