Class AbstractMultiInterceptor
java.lang.Object
jadex.providedservice.impl.service.interceptors.AbstractMultiInterceptor
- All Implemented Interfaces:
IServiceInvocationInterceptor
- Direct Known Subclasses:
DecouplingInterceptor
public abstract class AbstractMultiInterceptor
extends 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 -
Method Summary
Modifier and TypeMethodDescriptionabstract jadex.future.IFuture
<Void> Execute the command.jadex.future.IFuture
<Void> Execute the command.Get a sub interceptor for special cases.boolean
isApplicable
(ServiceInvocationContext context) Test if the interceptor is applicable.
-
Constructor Details
-
AbstractMultiInterceptor
public AbstractMultiInterceptor()
-
-
Method Details
-
execute
Execute the command.- Specified by:
execute
in interfaceIServiceInvocationInterceptor
- Parameters:
sic
- The invocation context.args
- The argument(s) for the call.- Returns:
- The result of the command.
-
isApplicable
Test if the interceptor is applicable.- Specified by:
isApplicable
in interfaceIServiceInvocationInterceptor
- Returns:
- True, if applicable.
-
doExecute
Execute the command.- Parameters:
args
- The argument(s) for the call.- Returns:
- The result of the command.
-
getInterceptor
Get a sub interceptor for special cases.- Parameters:
sic
- The context.- Returns:
- The interceptor (if any).
-