Whatever. That's how ORM does or used to do it (linked to the SF lifecycle). But if you really want another interface go for it. Your approach won't work I think though. The actual DatastoreProvider configuration + connection management is necessary. So it has to be injected somehow into this SchemaInitializer. It can't just be a Class.
|