It's possible by using the PluginLifecycle see here for an example: > https://github.com/spring-projects/spring-data-neo4j/blob/master/spring-data-neo4j/src/main/java/org/springframework/data/neo4j/server/SpringPluginInitializer.java#L64 > > <https://github.com/spring-projects/spring-data-neo4j/blob/master/spring-data-neo4j/src/main/java/org/springframework/data/neo4j/server/SpringPluginInitializer.java#L64>
You can return your own injectables which then will be provided to your Jersey Resources. Cheers, Michael > Am 28.07.2015 um 09:47 schrieb Dirk Mahler <[email protected]>: > > Hi, > > the documentation contains a section which describes how a Neo4j server can > be extended with custom REST endpoints > (http://neo4j.com/docs/stable/server-unmanaged-extensions.html). The code > snippets show how dependencies can be injected into the implementation: > > public ColleaguesResource(@Context GraphDatabaseService graphDb ) { > ... > } > > I'm going to create a set of extensions for jQAssistant which need to share > some common implementations (singletons) - is there a supported way of > defining such custom injectables, e.g. > > public ScanResource(@Context ScannerPluginRepository pluginRepository) { > ... > } > > Cheers, > > Dirk > > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
