class BeanManagedUpdate extends java.lang.Object implements UpdateCallback
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.Class<?>,java.lang.ref.WeakReference<UpdateMethodAdapter>> |
classCache |
private java.lang.String |
methodName |
| Constructor and Description |
|---|
BeanManagedUpdate(java.lang.String methodName) |
| Modifier and Type | Method and Description |
|---|---|
private UpdateMethodAdapter |
getUpdateMethod(java.lang.Object instance)
Returns a (lazily created) method adapter that invokes a predefined method on the given instance.
|
void |
update(java.lang.Object instance,
java.util.Map properties)
Performs an update using the given properties.
|
private final java.lang.String methodName
private final java.util.Map<java.lang.Class<?>,java.lang.ref.WeakReference<UpdateMethodAdapter>> classCache
public void update(java.lang.Object instance,
java.util.Map properties)
UpdateCallbackupdate in interface UpdateCallbackinstance - the updated instanceproperties - update propertiesprivate UpdateMethodAdapter getUpdateMethod(java.lang.Object instance)
instance - object instance