Class DocumentStoreFactory
- java.lang.Object
-
- org.torproject.metrics.onionoo.docs.DocumentStoreFactory
-
public class DocumentStoreFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DocumentStoreFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentStoregetDocumentStore()Returns the singleton document store instance that gets created upon first invocation of this method.static voidsetDocumentStore(DocumentStore documentStore)Sets a custom singleton document store instance that will be returned bygetDocumentStore()rather than creating an instance upon first invocation.
-
-
-
Method Detail
-
setDocumentStore
public static void setDocumentStore(DocumentStore documentStore)
Sets a custom singleton document store instance that will be returned bygetDocumentStore()rather than creating an instance upon first invocation.
-
getDocumentStore
public static DocumentStore getDocumentStore()
Returns the singleton document store instance that gets created upon first invocation of this method.
-
-