Re: [picocontainer-dev] Better CAF handling
Mauro Talevi <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Paul Hammant wrote:
> ( so I agree in the end with others on keeping 'ComponentAdapter' naming
> as is - it is for more advanced people )
+1
> That said, I've dropped to Adapter only for the following discussion
> that Erik started some days ago. Which do y'all like best :-
>
>
> MutablePicoContainer mpc = new
> PicoBuilder().withWithCaching().withThreadSafety().withHiddenImplementations().withSetterInjection().build();
>
>
> MutablePicoContainer mpc = new
> PicoBuilder().withAdapters(caching().of().madeThreadSafe().of().hiddenImplementations().of().setterInjection()).build();
>
>
> MutablePicoContainer mpc = new
> PicoBuilder().withAdapters(CACHING, THREADSAFE, IMPL_HIDING, CDI).build();
>
> or some other builder style design .. ?
>
First build syntax is clearest IMO
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email