@Test public void lookupTests() throws Exception { assertEquals(FileDatastoreFactory.class, provider.lookupFactory(new URI("file: assertEquals(MemoryDatastoreFactory.class, provider.lookupFactory(new URI("memory: assertEquals(GraphDbDatastoreFactory.class, provider.lookupFactory(new URI("graphDb: }
@SuppressWarnings("unchecked") DatastoreFactory lookupFactory(URI uri) { String factoryClass = getFactoryClassName(uri); LOG.debug("try to lookup provider-class {}", factoryClass); try { return ((Class<? extends DatastoreFactory>) Class.forName(factoryClass)).newInstance(); } catch (ReflectiveOperationException e) { throw new XOException("Cannot create datastore factory.", e); } }
EmbeddedNeo4jXOProvider implements XODatastoreProvider { @SuppressWarnings("unchecked") DatastoreFactory lookupFactory(URI uri) { String factoryClass = getFactoryClassName(uri); LOG.debug("try to lookup provider-class {}", factoryClass); try { return ((Class<? extends DatastoreFactory>) Class.forName(factoryClass)).newInstance(); } catch (ReflectiveOperationException e) { throw new XOException("Cannot create datastore factory.", e); } } }
EmbeddedNeo4jXOProvider implements XODatastoreProvider { @SuppressWarnings("unchecked") DatastoreFactory lookupFactory(URI uri) { String factoryClass = getFactoryClassName(uri); LOG.debug("try to lookup provider-class {}", factoryClass); try { return ((Class<? extends DatastoreFactory>) Class.forName(factoryClass)).newInstance(); } catch (ReflectiveOperationException e) { throw new XOException("Cannot create datastore factory.", e); } }  }
EmbeddedNeo4jXOProvider implements XODatastoreProvider { @SuppressWarnings("unchecked") DatastoreFactory lookupFactory(URI uri) { String factoryClass = getFactoryClassName(uri); LOG.debug("try to lookup provider-class {}", factoryClass); try { return ((Class<? extends DatastoreFactory>) Class.forName(factoryClass)).newInstance(); } catch (ReflectiveOperationException e) { throw new XOException("Cannot create datastore factory.", e); } }  @Override Datastore<?, ?, ?, ?, ?> createDatastore(XOUnit xoUnit); @Override Class<? extends Enum<? extends ConfigurationProperty>> getConfigurationProperties(); }
EmbeddedNeo4jXOProvider implements XODatastoreProvider { @SuppressWarnings("unchecked") DatastoreFactory lookupFactory(URI uri) { String factoryClass = getFactoryClassName(uri); LOG.debug("try to lookup provider-class {}", factoryClass); try { return ((Class<? extends DatastoreFactory>) Class.forName(factoryClass)).newInstance(); } catch (ReflectiveOperationException e) { throw new XOException("Cannot create datastore factory.", e); } }  @Override Datastore<?, ?, ?, ?, ?> createDatastore(XOUnit xoUnit); @Override Class<? extends Enum<? extends ConfigurationProperty>> getConfigurationProperties();  }