com.buschmais.jqassistant.neo4j.backend.bootstrap.AbstractEmbeddedNeo4jServer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bootstrap Show documentation
Show all versions of bootstrap Show documentation
Provides the API for an embedded Neo4j Server on top of a jQAssistant instance.
The newest version!
package com.buschmais.jqassistant.neo4j.backend.bootstrap;
import java.util.Collection;
import com.buschmais.jqassistant.neo4j.backend.bootstrap.configuration.Embedded;
import com.buschmais.xo.neo4j.embedded.impl.datastore.EmbeddedDatastore;
/**
* Abstract base class for {@link EmbeddedNeo4jServer}s.
*/
public abstract class AbstractEmbeddedNeo4jServer implements EmbeddedNeo4jServer {
protected EmbeddedDatastore embeddedDatastore;
protected Embedded embedded;
protected ClassLoader classLoader;
@Override
public final void initialize(EmbeddedDatastore embeddedDatastore, Embedded embedded, ClassLoader classLoader, Collection> procedureTypes,
Collection> functionTypes) {
this.embeddedDatastore = embeddedDatastore;
this.embedded = embedded;
this.classLoader = classLoader;
initialize(procedureTypes, functionTypes);
}
/**
* Initialize the embedded server.
*
* @param procedureTypes
* The procedures to register.
* @param functionTypes
* The functions to register.
*/
protected abstract void initialize(Collection> procedureTypes, Collection> functionTypes);
}