Re: [picocontainer-dev] caf chaining in builder (done)

Paul Hammant <[email protected]>
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>
> 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!

- Paul

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.