|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for accessing attributes at runtime. This is a facade, which can accommodate any attributes API such as Jakarta Commons Attributes, or (possibly in future) a Spring attributes implementation.
The purpose of using this interface is to decouple Spring code from any specific attributes implementation. Even once JSR-175 is available, there is still value in such a facade interface, as it allows for hierarchical attribute sources: for example, an XML file or properties file might override some attributes defined in source-level metadata with JSR-175 or another framework.
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. |
Method Detail |
public java.util.Collection getAttributes(java.lang.Class targetClass)
targetClass
- the class that contains attribute information
public java.util.Collection getAttributes(java.lang.Class targetClass, java.lang.Class filter)
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)
targetMethod
- the method that contains attribute information
public java.util.Collection getAttributes(java.lang.reflect.Method targetMethod, java.lang.Class filter)
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)
targetField
- the field that contains attribute information
public java.util.Collection getAttributes(java.lang.reflect.Field targetField, java.lang.Class filter)
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 |