|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.metadata.commons.CommonsAttributes
public class 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 | |
|---|---|
Collection |
getAttributes(Class targetClass)
Return the class attributes of the target class. |
Collection |
getAttributes(Class targetClass,
Class filter)
Return the class attributes of the target class of a given type. |
Collection |
getAttributes(Field targetField)
Return the field attributes of the target field. |
Collection |
getAttributes(Field targetField,
Class filter)
Return the field attributes of the target method of a given type. |
Collection |
getAttributes(Method targetMethod)
Return the method attributes of the target method. |
Collection |
getAttributes(Method targetMethod,
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 Collection getAttributes(Class targetClass)
Attributes
getAttributes in interface AttributestargetClass - the class that contains attribute information
null
public Collection getAttributes(Class targetClass,
Class filter)
AttributesThe class attributes are filtered by providing a Class
reference to indicate the type to filter on. This is useful if you know
the type of the attribute you are looking for and don't want to sort
through the unfiltered Collection yourself.
getAttributes in interface AttributestargetClass - the class that contains attribute informationfilter - specify that only this type of class should be returned
public Collection getAttributes(Method targetMethod)
Attributes
getAttributes in interface AttributestargetMethod - the method that contains attribute information
null
public Collection getAttributes(Method targetMethod,
Class filter)
AttributesThe method attributes are filtered by providing a Class
reference to indicate the type to filter on. This is useful if you know
the type of the attribute you are looking for and don't want to sort
through the unfiltered Collection yourself.
getAttributes in interface AttributestargetMethod - the method that contains attribute informationfilter - specify that only this type of class should be returned
nullpublic Collection getAttributes(Field targetField)
Attributes
getAttributes in interface AttributestargetField - the field that contains attribute information
null
public Collection getAttributes(Field targetField,
Class filter)
AttributesThe field attributes are filtered by providing a Class
reference to indicate the type to filter on. This is useful if you know
the type of the attribute you are looking for and don't want to sort
through the unfiltered Collection yourself.
getAttributes in interface AttributestargetField - the field that contains attribute informationfilter - specify that only this type of class should be returned
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||