Class DocumentStoreFactory


  • public class DocumentStoreFactory
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static DocumentStore getDocumentStore()
      Returns the singleton document store instance that gets created upon first invocation of this method.
      static void setDocumentStore​(DocumentStore documentStore)
      Sets a custom singleton document store instance that will be returned by getDocumentStore() rather than creating an instance upon first invocation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DocumentStoreFactory

        public DocumentStoreFactory()
    • Method Detail

      • setDocumentStore

        public static void setDocumentStore​(DocumentStore documentStore)
        Sets a custom singleton document store instance that will be returned by getDocumentStore() 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.