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