public class StoreService extends Object implements Service
CONF_PREFIX, DEFAULT_LOCK_TIMEOUT, lockTimeout| Constructor and Description | 
|---|
StoreService()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
destroy()
Destroy the StoreService 
 | 
javax.persistence.EntityManager | 
getEntityManager()
Return EntityManager 
 | 
Class<? extends Service> | 
getInterface()
Return the public interface of the service. 
 | 
<S extends Store>  | 
getStore(Class<S> klass)
Return instance of store. 
 | 
<S extends Store,T extends Store>  | 
getStore(Class<S> klass,
                T store)
Return instance of store with an EntityManager pointing to an existing Store. 
 | 
void | 
init(Services services)
Initializes the  
StoreService. | 
public StoreService()
public <S extends Store> S getStore(Class<S> klass) throws StoreException
Store.StoreExceptionpublic <S extends Store,T extends Store> S getStore(Class<S> klass, T store) throws StoreException
Store.StoreExceptionpublic Class<? extends Service> getInterface()
getInterface in interface ServiceStoreService.public void init(Services services) throws ServiceException
StoreService.init in interface Serviceservices - services instance.ServiceException - thrown if the service could not initialize.public javax.persistence.EntityManager getEntityManager()
Copyright © 2016 Apache Software Foundation. All rights reserved.