![]() |
|
Contents |
Protected Member Functions | |
| void | initialize (Class<?> type, Object oldInstance, Object newInstance, Encoder enc) |
| Initializes the new instance in the new environment so that it becomes equivalent with the old one, meanwhile recording this process in the encoder. | |
| void initialize | ( | Class<?> | type, | |
| Object | oldInstance, | |||
| Object | newInstance, | |||
| Encoder | enc | |||
| ) | [protected] |
Initializes the new instance in the new environment so that it becomes equivalent with the old one, meanwhile recording this process in the encoder.
This is done by inspecting each property of the bean. The property value from the old bean instance and the value from the new bean instance are both retrieved and examined to see whether the latter mutates to the former, and if not, issue a call to the write method to set the equivalent value for the new instance. Exceptions occured during this process are reported to the exception listener of the encoder.
| type | the type of the bean | |
| oldInstance | the original bean object to be recorded | |
| newInstance | the simmulating new bean object to be initialized | |
| enc | the encoder to write the outputs to |
Reimplemented from DefaultPersistenceDelegate.