Closed jknack closed 6 years ago
DBAccessFactory it is nice for quick start, but will be nice to have a way to manually instantiated/configure DBAccess implementations.
DBAccessFactory
DBAccess
For example make BoltDBAccess fully configurable via constructor:
BoltDBAccess
public BoltDBAccess(Driver driver) { ... } public BoltDBAccess(String uri, AuthToken token) { ... }
Similar for embedded implementation:
public EmbeddedDBAccess(GraphDatabaseService db) { ... }
Each implementation has a clear contract of what dependencies needs.
Here are some other benefits of such solution:
What do you think?
Good idea, I will consider this for the next release.
Best regards
DBAccessFactory
it is nice for quick start, but will be nice to have a way to manually instantiated/configureDBAccess
implementations.For example make
BoltDBAccess
fully configurable via constructor:Similar for embedded implementation:
Each implementation has a clear contract of what dependencies needs.
Here are some other benefits of such solution:
What do you think?