public class DefaultDataStoreRegistry extends Object implements DataStoreRegistry
| Constructor and Description |
|---|
DefaultDataStoreRegistry() |
| Modifier and Type | Method and Description |
|---|---|
<E,K extends Serializable> |
getDataStore(Class<E> entityType)
Finds the data store for the given entity type
|
boolean |
has(Class<?> entityType)
Used to determine whether or not a data store has been registered that supports the given entity type.
|
<E,K extends Serializable> |
register(DataStore<K,E> dataStore)
Registers a new data store.
|
public <E,K extends Serializable> void register(DataStore<K,E> dataStore)
DataStoreRegistryregister in interface DataStoreRegistryE - the type of the entitiesK - the type of the keysdataStore - the data storepublic <E,K extends Serializable> DataStore<K,E> getDataStore(Class<E> entityType)
DataStoreRegistrygetDataStore in interface DataStoreRegistryE - the type of the entitiesK - the type of the keysentityType - the entity typepublic boolean has(Class<?> entityType)
DataStoreRegistryhas in interface DataStoreRegistryentityType - the entity typeCopyright © 2014–2016. All rights reserved.