use of org.gluu.service.document.store.LocalDocumentStore in project oxCore by GluuFederation.
the class DocumentStoreProviderFactory method getLocalDocumentStoreProvider.
@Produces
@ApplicationScoped
@LocalDocumentStore
public DocumentStoreProvider getLocalDocumentStoreProvider() {
log.debug("Started to create local document store provider");
DocumentStoreType documentStoreType = DocumentStoreType.LOCAL;
DocumentStoreProvider documentStoreProvider = instance.select(LocalDocumentStoreProvider.class).get();
if (documentStoreProvider == null) {
throw new RuntimeException("Failed to initialize DocumentStoreProvider, DocumentStoreProviderType is unsupported: " + documentStoreType);
}
documentStoreProvider.create();
return documentStoreProvider;
}
Aggregations