Re: [picocontainer-dev] CAF chaining #2
Paul Hammant <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
>> is better than forThis ?
>
> What's an example of usage? I think you showed it once before, but
> I'm not seeing it in the context right now.
>
private ComponentAdapterFactory caf = new
HotSwappingComponentAdapterFactory().forThis(new
AnyInjectionComponentAdapterFactory());
Its essentially a chaining design. It used to be in ctors, but the
enum idea is easier to implement if the majority of delgating/
decorating CAFs can be instantiable in the statically importable enum/
method idea.
- Paul