public class PrePostConditionInterceptor extends AbstractLRUApplicableInterceptor
Modifier and Type | Class and Description |
---|---|
protected class |
PrePostConditionInterceptor.CheckReturnValueResultListener
Check return value, when service call is finished.
|
static class |
PrePostConditionInterceptor.IntermediateResultUnavailableException |
static class |
PrePostConditionInterceptor.PrePostConditionFetcher
Fetcher for pre and post condition.
|
applicables
ia
Constructor and Description |
---|
PrePostConditionInterceptor(IInternalAccess ia)
Create a new AbstractLRUApplicableInterceptor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.RuntimeException |
checkPostConditions(ServiceInvocationContext context,
java.lang.Object res,
boolean intermediate,
java.util.List<java.lang.Object> ires)
Check the postconditions.
|
protected java.lang.RuntimeException |
checkPreConditions(ServiceInvocationContext context)
Check the precondition.
|
boolean |
customIsApplicable(ServiceInvocationContext context)
Test if the interceptor is applicable.
|
IFuture<java.lang.Void> |
execute(ServiceInvocationContext context)
Execute the interceptor.
|
protected int |
getKeepForPostConditions(ServiceInvocationContext context)
Get the number of intermediate results that should be explicitly
kept by the interceptor (only necessary for subscription futures).
|
protected boolean |
isPrePostCondition(java.lang.annotation.Annotation anno)
Check if an annotation belongs to the supported
types of pre/postconditions.
|
isApplicable
getComponent
public PrePostConditionInterceptor(IInternalAccess ia)
public boolean customIsApplicable(ServiceInvocationContext context)
customIsApplicable
in class AbstractLRUApplicableInterceptor
protected boolean isPrePostCondition(java.lang.annotation.Annotation anno)
public IFuture<java.lang.Void> execute(ServiceInvocationContext context)
context
- The invocation context.protected java.lang.RuntimeException checkPreConditions(ServiceInvocationContext context)
protected java.lang.RuntimeException checkPostConditions(ServiceInvocationContext context, java.lang.Object res, boolean intermediate, java.util.List<java.lang.Object> ires)
protected int getKeepForPostConditions(ServiceInvocationContext context)