public class PrePostConditionInterceptor extends AbstractLRUApplicableInterceptor
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | PrePostConditionInterceptor.CheckReturnValueResultListenerCheck return value, when service call is finished. | 
| static class  | PrePostConditionInterceptor.IntermediateResultUnavailableException | 
| static class  | PrePostConditionInterceptor.PrePostConditionFetcherFetcher for pre and post condition. | 
applicablesia| Constructor and Description | 
|---|
| PrePostConditionInterceptor(IInternalAccess ia)Create a new AbstractLRUApplicableInterceptor. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected java.lang.Exception | 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. | 
isApplicablegetComponentpublic PrePostConditionInterceptor(IInternalAccess ia)
public boolean customIsApplicable(ServiceInvocationContext context)
customIsApplicable in class AbstractLRUApplicableInterceptorprotected 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.Exception checkPostConditions(ServiceInvocationContext context, java.lang.Object res, boolean intermediate, java.util.List<java.lang.Object> ires)
protected int getKeepForPostConditions(ServiceInvocationContext context)