Class AbstractMultiInterceptor
- java.lang.Object
 - 
- jadex.bridge.service.component.interceptors.AbstractMultiInterceptor
 
 
- 
- All Implemented Interfaces:
 IServiceInvocationInterceptor
- Direct Known Subclasses:
 DecouplingInterceptor
public abstract class AbstractMultiInterceptor extends java.lang.Object implements IServiceInvocationInterceptor
Abstract interceptor that supports sub interceptors for special cases. It will perform a lookup for a special case interceptor via its method name. 
- 
- 
Constructor Summary
Constructors Constructor Description AbstractMultiInterceptor() 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract IFuture<java.lang.Void>doExecute(ServiceInvocationContext sic)Execute the command.IFuture<java.lang.Void>execute(ServiceInvocationContext sic)Execute the command.IServiceInvocationInterceptorgetInterceptor(ServiceInvocationContext sic)Get a sub interceptor for special cases.booleanisApplicable(ServiceInvocationContext context)Test if the interceptor is applicable. 
 - 
 
- 
- 
Method Detail
- 
execute
public IFuture<java.lang.Void> execute(ServiceInvocationContext sic)
Execute the command.- Specified by:
 executein interfaceIServiceInvocationInterceptor- Parameters:
 args- The argument(s) for the call.- Returns:
 - The result of the command.
 
 
- 
isApplicable
public boolean isApplicable(ServiceInvocationContext context)
Test if the interceptor is applicable.- Specified by:
 isApplicablein interfaceIServiceInvocationInterceptor- Returns:
 - True, if applicable.
 
 
- 
doExecute
public abstract IFuture<java.lang.Void> doExecute(ServiceInvocationContext sic)
Execute the command.- Parameters:
 args- The argument(s) for the call.- Returns:
 - The result of the command.
 
 
- 
getInterceptor
public IServiceInvocationInterceptor getInterceptor(ServiceInvocationContext sic)
Get a sub interceptor for special cases.- Parameters:
 sic- The context.- Returns:
 - The interceptor (if any).
 
 
 - 
 
 -