public abstract class OgmPluginInitializer extends Object implements org.neo4j.server.plugins.PluginLifecycle
META-INF/services/org.neo4j.server.plugins.PluginLifecycle
in your plugin jar and list the name of the class there @Context to inject SessionFactory to extension resource dbms.unmanaged_extension_classes property| Modifier and Type | Class and Description |
|---|---|
static class |
OgmPluginInitializer.OgmInjectable<T> |
| Modifier and Type | Field and Description |
|---|---|
protected String |
packages |
protected SessionFactory |
sessionFactory |
| Constructor and Description |
|---|
OgmPluginInitializer(String packages) |
| Modifier and Type | Method and Description |
|---|---|
protected SessionFactory |
createSessionFactory(EmbeddedDriver embeddedDriver) |
Collection<org.neo4j.server.plugins.Injectable<?>> |
start(org.neo4j.graphdb.GraphDatabaseService graphDatabaseService,
org.apache.commons.configuration.Configuration config) |
void |
stop() |
protected final String packages
protected SessionFactory sessionFactory
public OgmPluginInitializer(String packages)
public Collection<org.neo4j.server.plugins.Injectable<?>> start(org.neo4j.graphdb.GraphDatabaseService graphDatabaseService, org.apache.commons.configuration.Configuration config)
start in interface org.neo4j.server.plugins.PluginLifecycleprotected SessionFactory createSessionFactory(EmbeddedDriver embeddedDriver)
public void stop()
stop in interface org.neo4j.server.plugins.PluginLifecycleCopyright © 2017 Neo Technology, Inc.. All rights reserved.