org.ow2.frascati.tinfi.api
Interface IntentHandler

All Superinterfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor

public interface IntentHandler
extends org.aopalliance.intercept.Interceptor

Interface implemented by intent handlers.

An intent handler is a regular SCA component (primitive or composite) which implements an intent policy. Intent policies are usually non functional features (e.g. transaction, security, logging) which must be applied on SCA business components.

Tinfi provides an AOP (Aspect-Oriented Programming) like mechanism for dealing with intents. Intent handlers are interceptors which are installed on some selected service and reference methods. Whenever the method is invoked, the invocation is trapped and the intent handler is notified by calling the invoke(IntentJoinPoint) method. The argument of type IntentJoinPoint given to this method allows:

Several intent handlers may be added on the same method. In this case, they are executed in the order in which they were added.

Since:
0.3
Author:
Lionel Seinturier

Method Summary
 java.lang.Object invoke(IntentJoinPoint ijp)
          This method defines the actions performed by this intent handler.
 

Method Detail

invoke

java.lang.Object invoke(IntentJoinPoint ijp)
                        throws java.lang.Throwable
This method defines the actions performed by this intent handler.

Parameters:
ijp - the join point where the interception occured
Returns:
the value returned by the intercepted method
Throws:
java.lang.Throwable


Copyright © 2007-2011. All Rights Reserved.