This content has been marked as final.
Show 2 replies
-
1. Re: Configuration & CacheImpl overlap of concerns
brian.stansberry Apr 14, 2007 9:54 AM (in response to genman)I like the use of Configuration.createX() rather than setX/getX. A concern I have with using the configuration to provide these is it tends to expose the internal objects used by the cache as part of the public API. Using a factory approach gets around that issue, since there's no reason two calls to createX() should return the same instance.
-
2. Re: Configuration & CacheImpl overlap of concerns
manik Apr 17, 2007 10:51 AM (in response to genman)I agree with Brian. Furthermore, the configuration is a static representation of values that define how the cache behaves. Contruction is a different story.