I'll fix the docs, thanks!
On 8/5/05, Hoi Lam <[EMAIL PROTECTED]> 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 [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 02, 2005 8:49 AM > To: beehive-dev@incubator.apache.org > 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 > >