类 DataBindingPropertyAccessor
java.lang.Object
cn.taketoday.expression.spel.support.ReflectivePropertyAccessor
cn.taketoday.expression.spel.support.DataBindingPropertyAccessor
- 所有已实现的接口:
PropertyAccessor
A
PropertyAccessor variant for data binding
purposes, using reflection to access properties for reading and possibly writing.
A property can be referenced through a public getter method (when being read) or a public setter method (when being written), and also as a public field.
This accessor is explicitly designed for user-declared properties and does not
resolve technical properties on java.lang.Object or java.lang.Class.
For unrestricted resolution, choose ReflectivePropertyAccessor instead.
- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 cn.taketoday.expression.spel.support.ReflectivePropertyAccessor
ReflectivePropertyAccessor.OptimalPropertyAccessor -
方法概要
修饰符和类型方法说明static DataBindingPropertyAccessorCreate a new data-binding property accessor for read-only operations.static DataBindingPropertyAccessorCreate a new data-binding property accessor for read-write operations.protected booleanisCandidateForProperty(Method method, Class<?> targetClass) Determine whether the givenMethodis a candidate for property access on an instance of the given target class.从类继承的方法 cn.taketoday.expression.spel.support.ReflectivePropertyAccessor
canRead, canWrite, createOptimalAccessor, findField, findGetterForProperty, findSetterForProperty, getPropertyMethodSuffix, getPropertyMethodSuffixes, getSpecificTargetClasses, read, write
-
方法详细资料
-
isCandidateForProperty
从类复制的说明:ReflectivePropertyAccessorDetermine whether the givenMethodis a candidate for property access on an instance of the given target class.The default implementation considers any method as a candidate, even for non-user-declared properties on the
Objectbase class.- 覆盖:
isCandidateForProperty在类中ReflectivePropertyAccessor- 参数:
method- the Method to evaluatetargetClass- the concrete target class that is being introspected
-
forReadOnlyAccess
Create a new data-binding property accessor for read-only operations. -
forReadWriteAccess
Create a new data-binding property accessor for read-write operations.
-