public interface PersistenceHandler<T>
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Requires the destroy of the persistent resource.
|
T |
getData()
The implementation to retrieve data from the persistence manager.
|
void |
onDestroy()
When the item need no more to be persisted
the refresh loop is closed and this method is
invoked.
|
void |
onLoad()
Automatically invoked by the library at instantiation
of persistent items.
|
void |
onRefresh()
The code to execute once the persistent object is refreshed.
|
void |
setData(T data)
Sets the new data to persist.
|
void onRefresh()
void onLoad()
void onDestroy()
void destroy()
T getData()
void setData(T data)
data
- Copyright © 2015. All Rights Reserved.