In a local branch of mine, SchemaInitializer is a Service which can obtain a reference to the datastore provider by implementing ServiceRegistryAwareService. The SchemaInitializerInitiator contributes this service to the registry by instantiating the type retrieved via DatastoreProvider#getSchemaInitializerType(). I'm using this for the sequence initialization in Neo4j successfully.
|