Hi Adam,

This was a bug, which is now fixed in SVN (1.0 and trunk).

Best regards,
Jerome  

> -----Message d'origine-----
> De : Adam Taft [mailto:[EMAIL PROTECTED] 
> Envoyé : lundi 21 mai 2007 22:56
> À : [email protected]
> Objet : StatusService Question / Potential Bug
> 
> Hi,
> 
> I'm trying to set a StatusService object on a Component.  In 
> my custom 
> StatusService object, I'm overriding the getStatus() method so that I 
> can do some custom handling based on various exceptions being 
> thrown in 
> our restlets and resources.
> 
> If I call Component#setStatusService, the StatusService#getStatus() 
> method is never called, only getRepresentation() is called.  
> However, if 
> I create an Application instance and call 
> Application#setStatusService 
> on it, the StatusService#getStatus() method is correctly 
> invoked and I 
> can get control over the returned status code, etc. based on 
> the Throwable.
> 
> I'm under the impression that these two cases should work 
> identically. 
> So, I'm guessing that this is a bug?  Or, is there something in my 
> implementation that I'm doing wrong?
> 
> Thanks in advance,
> 
> Adam

Reply via email to