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
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.