T - the type of the data that changed and that has to be written back
to the original data source.public interface WriteBackProvider<T>
| Modifier and Type | Method and Description |
|---|---|
void |
setWriteBackHandler(WriteBackHandler<T> handler)
Set the
WriteBackHandler for this provider to the specified
handler. |
void setWriteBackHandler(WriteBackHandler<T> handler)
WriteBackHandler for this provider to the specified
handler. When the provider decides to write data back to the original
datasource (that is, when data has been changed locally), the
WriteBackHandler.createDataSource(java.lang.Object) method will
be called. This method returns a WritableDataReader
that will be used to send the data to the origin, by calling the
WritableDataReader.writeBack() method.handler - the handler that will be used when the provider decides to
write data back to the original source.