Relative Content

Tag Archive for javadagger

Dagger dependency injected individually and @IntoSet at the same time. How do I implement it?

I’m learning Dagger. I’m a former Spring user. One of the things I noticed is I have to annotate each bean with @IntoSet to inject beans of a certain type as a collection. In Spring, I’d directly declare, for example, Set<MyBeanClass> as a parameter in an autowired method or constructor, and the framework would figure all out itself (granted, “framework figuring things out for you” is not always an advantage)