Re: [picocontainer-dev] Using regex to gather a list of components for injection

Mauro Talevi <[email protected]> Wed, 16 Sep 2009 16:06:36 +0100
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>
Michael Rimov wrote:
>> http://fisheye.codehaus.org/changelog/picocontainer/?cs=5523
>>
>> I've started something, that should end up in Gems.  It is related to
>> ComponentMonitor in that it leverages the noComponentFound
>> functionality.  Thoughts as to name for it?  It makes components that
>> are not ordinarily in the container.  a Missing Component maker if you
>> like (though as you know by now I should never be allowed to name
>> classes).
> 
> You know, I'd like to see these kinds of things somehow tagged with the Moniker
> along the lines of "ExternalProvider", since they're bending ComponentMonitor
> into a Provider.  
> 
> Perhaps a marker interface to allow easy tracing through the IDE and Javadocs?
> 

Yes, I agree, it kinda warrants more than a monitor.  We could introduce 
an AutoComposer concept and have a RegexAutoComposer as the regex impl.

BTW, I'd prefer to composition/decoration of ComponentMonitor over 
inheritance.

> Other than that, I agree with Joerg..... 

Yep, definitely a Regex impl should have Regex in its name.

Cheers


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email