* @author Davide D'Alto <davide@hibernate.org>
*/
public class Neo4jGraphDatabaseServiceFactoryProvider {
public GraphDatabaseServiceFactory load(Map<?, ?> properties, ClassLoaderService classLoaderService) {
GraphDatabaseServiceFactory factory = new ConfigurationPropertyReader(properties )
.property( InternalProperties.NEO4J_GRAPHDB_FACTORYCLASS, GraphDatabaseServiceFactory.class )
.instantiate()
.withClassLoaderService( classLoaderService )
.withDefaultImplementation( EmbeddedGraphDatabaseFactory.class )
.getValue();
factory.initialize( properties );
return factory;
}