cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: Source and SourceResolver confusion
Date Tue, 03 Sep 2002 15:31:44 GMT


> -----Original Message-----
> From: Bruno Dumon [mailto:bruno@outerthought.org]
> Sent: Tuesday, September 03, 2002 5:23 PM
> To: cocoon-dev@xml.apache.org
> Subject: Source and SourceResolver confusion
> 
> 
> I'm a bit confused about the Source & SourceResolver in HEAD. Apparently
> the org.apache.cocoon.environment.Source has been deprecated, but the
> org.apache.cocoon.environment.SourceResolver is not (and still returns
> deprecated cocoon Source objects).
Yes, this is true. We can't deprecate the SourceResolver as it is one
of the main arguments for the setup() methods for actions, generators etc.

> 
> In the act method of the Action interface, a reference to the cocoon
> SourceResolver is passed, so I'm obliged here to use the deprecated
> Source class.
> 
> Is this a known fact, a bug or am I missing something?
> 
The resolve() method of the SourceResolver is deprecated by it inherits
from the org.apache.excalibur.source.SourceResolver class the
resolveURI() method. Use this instead and you don't have to deal
with deprecated methods or classes.

Carsten

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


Mime
View raw message