public class VitamRepositoryFactory extends Object implements VitamRepositoryProvider
Modifier and Type | Method and Description |
---|---|
static VitamRepositoryFactory |
getInstance()
get Thread-Safe instance instance.
|
VitamElasticsearchRepository |
getVitamESRepository(LogbookCollections collection)
Retrieve the es repository for the collection
|
VitamMongoRepository |
getVitamMongoRepository(LogbookCollections collection)
Retrieve the mongo repository for the collection
|
public static VitamRepositoryFactory getInstance()
public VitamMongoRepository getVitamMongoRepository(LogbookCollections collection)
VitamRepositoryProvider
getVitamMongoRepository
in interface VitamRepositoryProvider
collection
- the logbook collectionpublic VitamElasticsearchRepository getVitamESRepository(LogbookCollections collection)
VitamRepositoryProvider
getVitamESRepository
in interface VitamRepositoryProvider
collection
- the logbook collectionCopyright © 2018 Vitam. All rights reserved.