spring-projects / spring-plugin

Apache License 2.0
444 stars 119 forks source link

Map/Listener support #15

Open res1st opened 9 years ago

res1st commented 9 years ago

Hi, I'm currently switching back from OSGi to a non-OSGi project.

What I'm really missing is Map-support to store and select plug-ins. The filering with supports() over a list feels bad.

Is there an easy way to do it on top of spring-plugin?

odrotbohm commented 8 years ago

What I'm really missing is Map-support to store and select plug-ins.

Can you elaborate?

The filtering with supports(…) over a list feels bad.

Can you elaborate?

MichalHecko commented 7 years ago

You can implement method "supports" which rely on plugin name field in your base plugin abstract class. I use this method to pick correct plugin by several criterias