[Design the new POJO MicroContainer] - Re: Abstractions again - MDR - sigh!
by adrian@jboss.org
"alesj" wrote : "adrian(a)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
17 years, 9 months