avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bennett <exterminat...@comcast.net>
Subject Re: Container supported interceptable service
Date Tue, 20 Apr 2004 16:06:40 GMT
Niclas Hedhman wrote:
> On Monday 19 April 2004 18:49, Albert Kwong wrote:
> 
> public interface AbcService
> {
>     String doAbc ();
> 
>     String doDef ();
> }
> 
> /** @avalon.interceptor  type=AbcService
>  **/
> public interface AbcInterceptor
> {
>     String doAbc ();
> }
> 
> /** @avalon.interceptor  type=AbcService
>  **/
> public interface DefInterceptor
> {
>     String doDef();
> }
> 
> The advantage would be that you can create interception on any existing 
> component/service, without modification. Also, better separation of 
> Interception of different sorts, as many Interceptions can be done on the 
> same Service.
> The disadvantage would be that the Interceptor interface needs to be created 
> maually (IMO, a very small price.).
> 

I really like this idea.  Would there be some notion of chaining 
multiple interceptions acting on a single service together?  Ordering, etc?


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message