Berin Loritsch wrote:

> Sylvain Wallez wrote:
>
>> Berin Loritsch wrote:
>> > To have the equivalent of ComponentSelector.hasComponent(Object 
>> hint), you also need :
>>
>>    boolean hasComponent( String role, Parameters params);
>
>
> No.  All we need to check is that there is at least one implementation of
> a role.  If there is none that are specialized, the default implmentation
> is returned.

Mmmh... Let's consider a very practical case (sorry for cocoon-dev 
flooding on avalon-dev ;) : in a Cocoon sitemap, we have e.g. a 
<map:generate type="file">. How can we check at sitemap load time if 
there actually exists a "file" specialization for the Generator role and 
that this statement is valid ? De we have to resort to a 
lookup()/release() and see if no exception occurs ?

Sylvain

-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to