Injecting collection of classes with Guice

30 views
Skip to first unread message

Shreyas

unread,
May 16, 2023, 11:25:51 AM5/16/23
to google-guice

I have a provider that provides a set of instances of an enum:

```
public class ClassA implements Provider<Set<BaseClassA>> {
  // perform some computation
     return new HashSet<BaseClassA>();
}
```

How do I bind this in my module?
Reply all
Reply to author
Forward
0 new messages