[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Abstractions again - MDR - sigh!

adrian@jboss.org do-not-reply at jboss.com
Mon Jul 7 07:53:31 EDT 2008


"alesj" wrote : "adrian at jboss.org" wrote : In future, always think carefully before introducing additional
  |   | (non-trivial or non-optional) thirdparty dependencies
  |   | to a project. This should be as big a decision as changing the spi.
  | Noted.
  | 
  | But the main problem here is, like you already pointed, is that JBossCache doesn't have proper split - Cache(Factory) being in spi, the impl details in some other part, which we wouldn't pull in, except for tests.
  | 

SPI/Impl split has nothing to do with the problem.

You'd still get the circular dependency because you've got to pull in the implementation
jar at some point, all you've done is fix the compile time problem for the spi.

Also in JBossAS it would require JBoss Cache (+ related jars) 
to be in the bootstrap classloader otherwise it couldn't load the classes.

Bootstrap ClassLoader: jboss-mdr.jar
^
| Delegation is this way
|
server/.../lib classloader: jboss-cache.jar, jgroups.jar, etc.

new JBossCacheCacheFactory() => NCDFE JBossCache

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

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



More information about the jboss-dev-forums mailing list