MatteoJoliveau / PlugFace

Next generation Java general purpose plugin framework
https://plugface.matteojoliveau.com
MIT License
42 stars 11 forks source link

Enable retrieval of multiple plugins of the same supertype #11

Open MatteoJoliveau opened 6 years ago

MatteoJoliveau commented 6 years ago

As of 0.7.0 plugins are singletons and if multiple ones have the same supertype only the first appearing in the registry can be retrieved.

final Callable plugin = manager.getPlugin(Callable.class);

Maybe we have 50 plugins implementing Callable.
PlugFace should be able to return them all.

final Collection<Callable> plugins = manager.getPlugins(Callable.class);
enyachoke commented 5 years ago

Hi @MatteoJoliveau how far is this feature.