Class DocumentNodeStoreFactory

  • All Implemented Interfaces:
    NodeStoreFactory

    public class DocumentNodeStoreFactory
    extends Object
    implements NodeStoreFactory
    Factory of a DocumentNodeStore instance. This is for the document storage in Oak. Currently, only the MongoDB as document-based database is supported.
    Author:
    mmoquillon
    • Constructor Detail

      • DocumentNodeStoreFactory

        public DocumentNodeStoreFactory()
    • Method Detail

      • create

        public org.apache.jackrabbit.oak.spi.state.NodeStore create​(String jcrHomePath,
                                                                    OakRepositoryConfiguration conf)
        Description copied from interface: NodeStoreFactory
        Creates a NodeStore instance according to the specified configuration parameters for the repository located at the given absolute path. The storage is opened and handled by the specified NodeStore instance.
        Specified by:
        create in interface NodeStoreFactory
        Parameters:
        jcrHomePath - the absolute path of the home directory of the JCR.
        conf - the JCR configuration with the parameters required to either create and initialize or to open the node storage.
        Returns:
        a NodeStore instance or null if the parameters in the configuration doesn't match the type of node this factory is in charge of. The returned NodeStore instance is the object by which the access to the storage is performed.