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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to