|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.datasync.AbstractStoreProvider<T>
public abstract class AbstractStoreProvider<T>
Some methods to help implementors create StoreProviders. It is
strongly recommended that all implementors of StoreProvider inherit
from this class in case it can provide some form of backwards compatibility.
| Constructor Summary | |
|---|---|
AbstractStoreProvider(java.lang.Class<T> type)
|
|
| Method Summary | |
|---|---|
void |
put(java.lang.String itemId,
RawData rawData)
Similar to Map.put(K, V) in adding items to a Store. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.directwebremoting.datasync.StoreProvider |
|---|
get, put, subscribe, unsubscribe, view |
| Constructor Detail |
|---|
public AbstractStoreProvider(java.lang.Class<T> type)
| Method Detail |
|---|
public void put(java.lang.String itemId,
RawData rawData)
StoreProviderMap.put(K, V) in adding items to a Store.
A value of null is equivalent to removing the item from the store.
Part of the function of put is to convert the data stored in
RawData into alterations to data in the store. This boiler plate
code is implemented in AbstractStoreProvider.
See notes on Item.getItemId()
put in interface StoreProvider<T>itemId - The key (or some mapping) to it.rawData - Data from the web to be converted and added to the store
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||