|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.metadata.commons.CommonsAttributes
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 following jars in your $ANT_HOME/lib directory for the Common Attributes compiler to work:
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 Framework project does not provide support usage of specific attributes implementations. Please refer to the appropriate site and mailing list of the attributes implementation.
Constructor Summary | |
CommonsAttributes()
|
Method Summary | |
java.util.Collection |
getAttributes(java.lang.Class targetClass)
Return the class attributes of the target class. |
java.util.Collection |
getAttributes(java.lang.Class targetClass,
java.lang.Class filter)
Return the class attributes of the target class of a given type. |
java.util.Collection |
getAttributes(java.lang.reflect.Field targetField)
Return the field attributes of the target field. |
java.util.Collection |
getAttributes(java.lang.reflect.Field targetField,
java.lang.Class filter)
Return the field attributes of the target method of a given type. |
java.util.Collection |
getAttributes(java.lang.reflect.Method targetMethod)
Return the method attributes of the target method. |
java.util.Collection |
getAttributes(java.lang.reflect.Method targetMethod,
java.lang.Class filter)
Return the method attributes of the target method of a given type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CommonsAttributes()
Method Detail |
public java.util.Collection getAttributes(java.lang.Class targetClass)
Attributes
getAttributes
in interface Attributes
targetClass
- the class that contains attribute information
public java.util.Collection getAttributes(java.lang.Class targetClass, java.lang.Class filter)
Attributes
getAttributes
in interface Attributes
targetClass
- the class that contains attribute informationfilter
- specify that only this type of class should be returned
public java.util.Collection getAttributes(java.lang.reflect.Method targetMethod)
Attributes
getAttributes
in interface Attributes
targetMethod
- the method that contains attribute information
public java.util.Collection getAttributes(java.lang.reflect.Method targetMethod, java.lang.Class filter)
Attributes
getAttributes
in interface Attributes
targetMethod
- the method that contains attribute informationfilter
- specify that only this type of class should be returned
public java.util.Collection getAttributes(java.lang.reflect.Field targetField)
Attributes
getAttributes
in interface Attributes
targetField
- the field that contains attribute information
public java.util.Collection getAttributes(java.lang.reflect.Field targetField, java.lang.Class filter)
Attributes
getAttributes
in interface Attributes
targetField
- the field that contains attribute informationfilter
- specify that only this type of class should be returned
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |