Use Guice multibindings with assisted inject for the set members
问题 I have a class PluginManager which accepts a Set<Plugin> using the Guice multi-bindings feature. However, the PluginManager has some runtime information that needs to be passed to the Plugin constructor. This seems to be a perfect use-case for Guice assisted injection i.e. my PluginManager would have Set<PluginFactory> injected, where the runtime information is provided to each factory, resulting in the required Plugin instances. I don't know the syntax to use in the Module however. The