public class PropertyOperatorHolder extends Object implements DecoratedPropertyOperator
The PropertyOperator holder.
It's generally used as the PropertyOperator actually used by
the various components in the project.
In contrast to other implementation classes,
it implements functionality through the PropertyOperator of the internal proxy,
which can be dynamically replaced at runtime,
which allows us to replace PropertyOperator without
changing the references of other components to the PropertyOperator instance.
| 构造器和说明 |
|---|
PropertyOperatorHolder() |
| 限定符和类型 | 方法和说明 |
|---|---|
@Nullable MethodInvoker |
findGetter(Class<?> targetType,
String propertyName)
Get getter method.
|
@Nullable MethodInvoker |
findSetter(Class<?> targetType,
String propertyName)
Get setter method.
|
@NonNull PropDesc |
getPropertyDescriptor(Class<?> targetType)
Get property descriptor.
|
@Nullable Object |
readProperty(Class<?> targetType,
Object target,
String propertyName)
Get the specified property value.
|
void |
writeProperty(Class<?> targetType,
Object target,
String propertyName,
Object value)
Set the specified property value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPropertyOperator, setPropertyOperatorpublic @NonNull PropDesc getPropertyDescriptor(Class<?> targetType)
getPropertyDescriptor 在接口中 PropertyOperatortargetType - target typepublic @Nullable Object readProperty(Class<?> targetType, Object target, String propertyName)
readProperty 在接口中 PropertyOperatortargetType - target typetarget - targetpropertyName - property namepublic @Nullable MethodInvoker findGetter(Class<?> targetType, String propertyName)
findGetter 在接口中 PropertyOperatortargetType - target typepropertyName - property namepublic void writeProperty(Class<?> targetType, Object target, String propertyName, Object value)
writeProperty 在接口中 PropertyOperatortargetType - target typetarget - targetpropertyName - property namevalue - property valuepublic @Nullable MethodInvoker findSetter(Class<?> targetType, String propertyName)
findSetter 在接口中 PropertyOperatortargetType - target typepropertyName - property nameCopyright © 2024. All rights reserved.