Neo4j

org.neo4j.server.plugins
Interface PluginLifecycle


public interface PluginLifecycle

Interface to be implemented and exposed via the Java ServiceLocator mechanism that allows plugins to provide their own initialization.
The implementations of this interface have to be listed in a file META-INF/services/org.neo4j.server.plugins.PluginLifecycle that contains the fully qualified class names of the individual plugin. This file has to be supplied with the plugin jar to the Neo4j server.
The plugin might return a collection of Injectables that can later be used with


Method Summary
 Collection<Injectable<?>> start(GraphDatabaseService graphDatabaseService, org.apache.commons.configuration.Configuration config)
          Called at initialization time, before the plugin ressources are acutally loaded.
 void stop()
          called to shutdown individual external resources or configurations
 

Method Detail

start

Collection<Injectable<?>> start(GraphDatabaseService graphDatabaseService,
                                org.apache.commons.configuration.Configuration config)
Called at initialization time, before the plugin ressources are acutally loaded.

Parameters:
graphDatabaseService - of the Neo4j service, use it to integrate it with custom configuration mechanisms
config - server configuration
Returns:
A list of Injectables that will be available to resource dependency injection later

stop

void stop()
called to shutdown individual external resources or configurations


Neo4j

Copyright © 2002-2014 The Neo4j Graph Database Project. All Rights Reserved.