AnsweredAssumed Answered

Discovering Cycle plugins

Question asked by mproch on Jan 20, 2011
Latest reply on Jan 20, 2011 by bernd.ruecker
Currently Cycle is automatically discovering plugins by scanning classpath for classes with annotations. This is really cool, but it's pretty hard to use in OSGi environment. The problem is that methods used by scannotation library do not work in OSGi, as it has dynamic class environment. I have to embed all plugins in war with activiti-rest to make it working.

Do you think it would be possible to create additional mechanism for plugin discovery (of course still using scannotation method)?
Even something simplistic as having some singleton storing plugins would do.
Of course it would be nicer to have some decent mechanism such as putting plugin class names in specified files - such as META-INF/org/activiti/cycle/plugin - and then getting them by getResources method of classloader.

what do you think?