beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoi Lam" <h...@bea.com>
Subject RE: Control Interceptor mis-comment?
Date Fri, 05 Aug 2005 17:21:33 GMT
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:xibin.zeng@gmail.com] 
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


Mime
View raw message