private static class InvocationInterceptorChain.ValidatingInvocation<T> extends java.lang.Object implements InvocationInterceptor.Invocation<T>
Modifier and Type | Field and Description |
---|---|
private InvocationInterceptor.Invocation<T> |
delegate |
private java.util.List<InvocationInterceptor> |
interceptors |
private java.util.concurrent.atomic.AtomicBoolean |
invoked |
Constructor and Description |
---|
ValidatingInvocation(InvocationInterceptor.Invocation<T> delegate,
java.util.List<InvocationInterceptor> interceptors) |
Modifier and Type | Method and Description |
---|---|
private void |
fail(java.lang.String prefix) |
T |
proceed()
Proceed with this invocation.
|
(package private) void |
verifyInvokedAtLeastOnce() |
private final java.util.concurrent.atomic.AtomicBoolean invoked
private final InvocationInterceptor.Invocation<T> delegate
private final java.util.List<InvocationInterceptor> interceptors
ValidatingInvocation(InvocationInterceptor.Invocation<T> delegate, java.util.List<InvocationInterceptor> interceptors)
public T proceed() throws java.lang.Throwable
InvocationInterceptor.Invocation
proceed
in interface InvocationInterceptor.Invocation<T>
null
.java.lang.Throwable
- in case the invocation failedvoid verifyInvokedAtLeastOnce()
private void fail(java.lang.String prefix)