[jboss-dev-forums] [Design of JBossCache] - Re: Habanero: CacheFactory interface

manik.surtani@jboss.com do-not-reply at jboss.com
Sat Jul 22 23:12:45 EDT 2006


Or does it make more sense to:

1.  Package the microcontainer in JBC
2.  Use the microcontainer for DI for various services and managers
3.  Allow users to inject a running JGroups channel into the MC if they need to create an instance of JBC using an existing and running JGroups channel?

Naturally, when deploying within AS5, we would already have access to the MC so we wouldn't start a new instance.  But for standalone deployments we could always package it.

Pros
* Possibly cleaner code base with no direct dependencies.
* Possibly better and easier to unit test as a consequence
* Easier for users to configure and set up

Cons
* Another library dependency
* More code modifications

I'm not suggesting this should be in 2.0.0 - maybe something for later.

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

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



More information about the jboss-dev-forums mailing list