RE: [picocontainer-dev] Better CAF handling
Jörg Schaible <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
peter royal wrote on Thursday, May 24, 2007 4:47 PM:
> On May 24, 2007, at 4:19 AM, Jörg Schaible wrote:
>> MutablePicoContainer mpc = new PicoBuilder() {{
>> useSetterInjection(); // this is the factory !!
>> addThreadSafety();
>> addHiddenImplementations();
>> addCaching();
>> }}.build();
>
> interesting... what's up with the double-curlies?
Class initializers!
class X {
{
System.out.println("Running as part of object initialization");
}
}
Seldom used Java feature ;-)
- Jörg
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email