How can I generate a visual graph with all the dependencies Dagger 2 manages?
Guice has Grapher. Does anyone know how to do something similar in Dagger 2?
View module dependencies diagramRight-click the selected item and from the context menu, select Diagram | Show Diagram (or press Ctrl+Alt+Shift+U ).
Dagger evaluates file dependencies in a directed-acyclic-graph (DAG) like GNU make, but timestamps or hashes can be enabled per file. This allows you to use fast timestamp comparisons with large files, and hashing on small files.
Dependency Injection is the process of creating the static, stateless graph of service objects, where each service is parametrised by its dependencies. That's it!
I have built Scabbard using Dagger SPI that can generate Dagger 2 dependency graph during build time and later it link to @Component
and @Subcomponent
in IDE via IDE plugins.
Example:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With