beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xibin Zeng <>
Subject Re: Control Interceptor mis-comment?
Date Mon, 08 Aug 2005 19:53:55 GMT
Hoi -

Thanks for the message. I have opened a JIRA issue for the javadoc
comments. The email to the dev list came a couple of days later than
the email I sent to Ken and Eddie directly...


On 8/5/05, Hoi Lam <> wrote:
> Hi Xibin,
> Please ignore the comment, it was not updated to reflect a change in how
> pivoting is handled in the Interceptor model.  Each Interceptor method
> is now declared to throw an InterceptorPivotException.  As stated in the
> comment in this exception class: The InterceptorPivotException class
> declares a checked exception that is thrown by an Interceptor upon
> pivoting.  For example, if an interceptor wishes to stop a method from
> executing further and return a value, it can throw this exception and
> embed in the exception the return value that it wishes the method to
> return.  Thanks for noticing the outdated comment.
> Hoi
> -----Original Message-----
> From: Xibin Zeng [] 
> Sent: Tuesday, August 02, 2005 8:49 AM
> To:
> Subject: Control Interceptor mis-comment?
> Hi -
> The Beehive control framework has an interceptor model that is really
> cool and easy to use. I found this comment at the
> org.apache.beehive.controls.spi.svc.Interceptor class:
> * A return value of "true" from each Interceptor method indicates to the
> runtime
>  * that it should continue execution through the normal flow of
> control (ie, subsequent
>  * interceptors and operation/event execution).  "false" indicates
> that the interceptor
>  * has fully processed the operation and the runtime should "pivot" out.
> However, none of the Interceptor's methods returns boolean, instead
> they all return void. Is this just a mistake in the comment, or is
> there a interceptor-chaining mechanism somewhere?
> Thanks
> Xibin Zeng

View raw message