[infinispan-dev] Components and their fields
Manik Surtani
manik at jboss.org
Wed Apr 14 04:45:04 EDT 2010
On 13 Apr 2010, at 16:34, Vladimir Blagojevic wrote:
> Hi,
>
> Shouldn't we strive to minimize the number of fields in composite components that we create. I am working with StateTransferManagerImpl, DistributionManagerImpl and they both have so many fields it is overwhelming :)
>
> Why don't we inject AdvancedCache instead and then get references through it?
We could, but then AdvancedCache becomes a registry of sorts. And also makes it harder to unit test (as you will then *always* need an AdvancedCache stub).
Cheers
--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org
More information about the infinispan-dev
mailing list