RE: [picocontainer-dev] Better CAF handling
"Michael Rimov" <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Organization | Centerline Computers, Inc. |
| Message-ID | <019501c79e2b$3b9a2a90$b2ce7fb0$@com> |
> MutablePicoContainer mpc = new PicoBuilder() {{
> useSetterInjection(); // this is the factory !!
> addThreadSafety();
> addHiddenImplementations();
> addCaching();
> }}.build();
>
Ok two questions come to mind:
How would we add custom behaviors that would tend to be beyond the scope of
the core API?
Eg:
addJMXRegistration()
addRemoting()
etc?
And the second is probably more for Paul, how can we dynamically switch
"capabilities" as we're registering objects. Eg:
.component(Something.class) //Default CDI
.component(SomethingElse.class)
.component(Something3.class)
.withSetterInjection() //Switch to all new components use
SDI
.component(Setter1.class)
.component(Setter2.class)
.withConstructorInjection() //Back to CDI
.component(Something4.class)
.component(Something5.class)
-Mike
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email