|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IntentHandler
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:
Joinpoint.proceed()
).Several intent handlers may be added on the same method. In this case, they are executed in the order in which they were added.
Method Summary | |
---|---|
java.lang.Object |
invoke(IntentJoinPoint ijp)
This method defines the actions performed by this intent handler. |
Method Detail |
---|
java.lang.Object invoke(IntentJoinPoint ijp) throws java.lang.Throwable
ijp
- the join point where the interception occured
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |