Using regex to gather a list of components for injection

View: New views
5 Messages — Rating Filter:   Alert me  

Using regex to gather a list of components for injection

by Paul Hammant-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Regards,

- Paul


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

    http://xircles.codehaus.org/manage_email



Re: Using regex to gather a list of components for injection

by Jörg Schaible-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Paul Hammant 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).

What's wrong with RegexComposer ?

- Jörg


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

    http://xircles.codehaus.org/manage_email



RE: Using regex to gather a list of components for injection

by Michael Rimov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

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

                                                                -Mike









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

    http://xircles.codehaus.org/manage_email



Re: Using regex to gather a list of components for injection

by Mauro Talevi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



Re: Using regex to gather a list of components for injection

by Paul Hammant-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

I completely agree.  As is, it was just to satisfy a unit test.

- Paul


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

    http://xircles.codehaus.org/manage_email