Re: [picocontainer-dev] caf chaining in builder (done)
Jörg Schaible <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Paul Hammant wrote:
>> Yes, as long as
>>
>> MutablePicoContainer mpc = new PicoBuilder(SDI()).withBehaviors
>> (caching(), threadSafe(), implHiding()).build();
>>
>> is a simple short cut for something like:
>>
>> MutablePicoContainer mpc = new PicoBuilder(new SDIF()).withBehaviors
>> (new CachingBahaviour(), new ThreadSafeBahaviour(), new
>> ImplHidingBahaviour()).build();
>>
>
> Yes that's right.
>
>
>> That way you can add new DI factories or behaviours without
>> changing the Builder.
>
> I note, with appreciation, that you chose the british spelling of
> behavior - it's grated me for days having to write the other!
Hehehe ... normally I prefer the British spelling. I have always a grin on
my face looking at the Maven HP ... see the Documentation Menu :)
- Jörg
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email