[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Moving out of the UnifiedClassloaders

adrian@jboss.org do-not-reply at jboss.com
Fri Jan 11 12:18:20 EST 2008


"scott.stark at jboss.org" wrote : Dimitris said we are pulling in the osgi jars just to use its version class. Can we move to our own compatible interface to avoid this?
  | 

We do have an interface, 
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/microcontainer/trunk/deployers-structure-spi/src/main/org/jboss/deployers/structure/spi/classloading/Version.java?revision=64469&view=markup
but you still need an implementation.
Currently, we use the OSGi version class as our implementation:
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/microcontainer/trunk/deployers-structure-spi/src/main/org/jboss/deployers/structure/spi/classloading/helpers/VersionImpl.java?revision=64482&view=markup

There was a previous discuss on this problem.
The issue is basically if we don't use the OSGi version then we have
to come up with some complicated code that handles comparisons between
the different implementations when doing compareTo().
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/microcontainer/trunk/deployers-structure-spi/src/main/org/jboss/deployers/structure/spi/classloading/VersionRange.java?revision=64469&view=markup

Of course, its probably not a real problem in practice since it is unlikely that
foo:1.0.0 uses a different version implementation to foo:1.0.1 or foo:2.0.0 :-)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119166#4119166

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119166



More information about the jboss-dev-forums mailing list