cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject Re: Re-precating (?) classes (was: RE: What is a Parser?)
Date Sat, 01 Feb 2003 23:03:43 GMT
Vadim Gritsenko wrote:

> Nicola Ken Barozzi wrote:
>
>>
>> Vadim Gritsenko wrote:
>>
>>> Berin Loritsch wrote:
>>>
>>>> #3 We can safely remove the Component interface (the source for most
>>>>    deprecation warnings). 
>>>
>>>
>>>
>>> I'm trying to be cautious about removing it from public well-known 
>>> interfaces. Users are writing code with assumption that they won't 
>>> change, but once you remove Component interface from, say, 
>>> Generator, it means user's code won't compile anymore without change.
>>
>>
>>
>> Can you please post a code example about this? I'm a bit confused... 
>
>
>
> Sure... Here it is:
>
> Component c = ((ComponentSelector)manager.lookup(Generator.ROLE + 
> "Selector")).select("something");


Or this one, is even better:

Generator g = null;
Component c = g;

See also recent thread "what is parser" - seems like changes are already 
affecting existing code.

Vadim



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message