You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We rely on manual instantiation or Helper classes with static methods to call other components in the code.
But Maven includes a native DI method based on JSR-330
DI should simplify how different classes are used, clean code and simplify configuration.
Some notes based on some testing:
@Singleton and @Inject annotations work for single instances without any change in both Mojo and Doxia Parsers 😄
Injecting a collection of multiple implementations of an interface didn't work 😞
Error reporting is not as nice as other tools 🍃 . Classes with @Singleton that cannot be build because a dependency is not met, are simply not created and an error is reported on the injection point, not the creation.
The text was updated successfully, but these errors were encountered:
What is this issue about?
Description
We rely on manual instantiation or Helper classes with static methods to call other components in the code.
But Maven includes a native DI method based on JSR-330
DI should simplify how different classes are used, clean code and simplify configuration.
Some notes based on some testing:
@Singleton
and@Inject
annotations work for single instances without any change in both Mojo and Doxia Parsers 😄@Singleton
that cannot be build because a dependency is not met, are simply not created and an error is reported on the injection point, not the creation.The text was updated successfully, but these errors were encountered: