Package step.core.collections.delegating
Class DelegatingCollectionFactory
- java.lang.Object
-
- step.core.collections.delegating.DelegatingCollectionFactory
-
- All Implemented Interfaces:
Closeable,AutoCloseable,CollectionFactory
public class DelegatingCollectionFactory extends Object implements CollectionFactory
-
-
Constructor Summary
Constructors Constructor Description DelegatingCollectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCollectionFactory(String collectionId, CollectionFactory collectionFactory)voidaddRoute(String collectionName, String collectionId)voidclose()<T> Collection<T>getCollection(String name, Class<T> entityClass)voidsetDefaultRoute(String collectionId)
-
-
-
Method Detail
-
addCollectionFactory
public void addCollectionFactory(String collectionId, CollectionFactory collectionFactory)
-
setDefaultRoute
public void setDefaultRoute(String collectionId)
-
getCollection
public <T> Collection<T> getCollection(String name, Class<T> entityClass)
- Specified by:
getCollectionin interfaceCollectionFactory
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-