001package systems.dmx.storage.neo4j;
002
003import systems.dmx.core.service.ModelFactory;
004import systems.dmx.core.storage.spi.DMXStorage;
005import systems.dmx.core.storage.spi.DMXStorageFactory;
006
007
008
009/**
010 * Factory for obtaining a DMX storage based on Neo4j/Lucene.
011 * <p>
012 * Note: the factory is only needed by the test environment.
013 * The DMX Core obtains the storage as an OSGi service.
014 */
015public class Neo4jStorageFactory implements DMXStorageFactory {
016
017    // -------------------------------------------------------------------------------------------------- Public Methods
018
019    @Override
020    public DMXStorage newDMXStorage(String databasePath, ModelFactory mf) {
021        return new Neo4jStorage(databasePath, mf);
022    }
023}