I am trying to understand scopes in Dagger 2 using plain ole java (non-android).
I have a project which requires a singleton scope and then some more generic scopes.
Extremely basic overview:
I have RaspberryPi pins which are singletons and these singletons need to interact with more generic scoped dependencies like "Instruments" or "Sensors".
I am having trouble visualizing how to lay out my dependencies and get them to interact between scopes. The Dagger 2 documentation seems not too helpful and I have been stuck on this for a few weeks.
I have experience with Google Juice, Koin, and Spring DI, but I have a runtime performance requirement which requires me to use pre-generated DI (Dagger 2).
Is there anyone here with real experience and/or examples of Dagger 2 outside of Android?