public abstract class SpringPluginInitializer extends Object implements org.neo4j.server.plugins.PluginLifecycle
class MyInitializer extends SpringPluginInitializer {
public MyInitializer() {
super(new String[]{"myContext.xml"},"graphRepositoryFactory","myRepository");
}
}
| Modifier and Type | Field and Description |
|---|---|
protected ProvidedClassPathXmlApplicationContext |
ctx |
| Constructor and Description |
|---|
SpringPluginInitializer(String[] contextLocations,
org.neo4j.helpers.Pair<String,Class>... exposedBeans) |
| Modifier and Type | Method and Description |
|---|---|
protected static org.neo4j.helpers.Pair<String,Class> |
expose(String name,
Class<?> type) |
Collection<org.neo4j.server.plugins.Injectable<?>> |
start(org.neo4j.graphdb.GraphDatabaseService graphDatabaseService,
org.apache.commons.configuration.Configuration config)
Binds the provided graph database to the spring contexts so that spring beans that consume a
graph database can be populated.
|
void |
stop()
closes the spring context
|
protected ProvidedClassPathXmlApplicationContext ctx
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.PluginLifecyclegraphDatabaseService - of the Neo4j serverconfig - of the Neo4j Serverpublic void stop()
stop in interface org.neo4j.server.plugins.PluginLifecycleCopyright © 2011-2013-2013 Pivotal. All Rights Reserved.