I'm trying to set up a package of utilities that will be used by my client application but 'context' is causing me problems. I'm trying to:
- Have a database that is only accessible to the utilities package
- Stop it from being used from the client app (client app will be replaced in the future so I don't want to force the client app to pass the application's 'Context' all the way through to the dbase class).
- My Dbase class has 2 static functions for reading and writing to aid in restricting it being used outside of the utils package (hidden from the client app).
How do I deal with not having access to the Context from my utils package/dbase?