open class ReflectivePropertyAccessor : PropertyAccessor
Simple PropertyAccessor that uses reflection to access properties for reading and writing.
A property can be accessed through a public getter method (when being read) or a public setter method (when being written), and also as a public field.
Author
Andy Clement
Author
Juergen Hoeller
Author
Phillip Webb
Since
3.0
ReflectivePropertyAccessor()
Simple PropertyAccessor that uses reflection to access properties for reading and writing. A property can be accessed through a public getter method (when being read) or a public setter method (when being written), and also as a public field. |
open fun canRead(context: EvaluationContext, target: Any, name: String): Boolean |
|
open fun canWrite(context: EvaluationContext, target: Any, name: String): Boolean |
|
open fun createOptimalAccessor(evalContext: EvaluationContext, target: Any, name: String): PropertyAccessor
Attempt to create an optimized property accessor tailored for a property of a particular name on a particular class. The general ReflectivePropertyAccessor will always work but is not optimal due to the need to lookup which reflective member (method/field) to use each time read() is called. This method will just return the ReflectivePropertyAccessor instance if it is unable to build something more optimal. |
|
open fun getLastReadInvokerPair(): Member |
|
open fun getSpecificTargetClasses(): Array<Class<*>>
Returns |
|
open fun read(context: EvaluationContext, target: Any, name: String): TypedValue |
|
open fun write(context: EvaluationContext, target: Any, name: String, newValue: Any): Unit |