> -----Original Message-----
> From: Bruno Dumon [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 03, 2002 5:23 PM
> To: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to