"adrian(a)jboss.org" wrote :
| Ok. It would probably be better to change isInRange()
| to accept a comparator and configure it somewhere in the classloader
| setup.
|
| But it's one of those N^2 problems in writing comparators between
| all the different versions, e.g. our own, maven, osgi, java manifest, jdk7 module
system, etc.
|
| Less pluggable (do we know what all the possible parameters will be?),
| but probably easier to manage/configure would be to write
| some kind of complicated Version concrete class that can handle all the different
versions
| and always map the other versions into it.
|
In between this would be to push the mapping into the comparator implementation. We have a
Version implementation and register how to map VersionXImpl onto it in the comparator bean
configuration.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119195#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...