Class BatchProxyInvocationHandler
- java.lang.Object
-
- org.apache.batchee.container.proxy.BatchProxyInvocationHandler
-
- All Implemented Interfaces:
InvocationHandler
public class BatchProxyInvocationHandler extends Object implements InvocationHandler
Proxy handler for all our Batch parts like ItemReader, ItemWriter, etc. Most batch part methods store away the exception in the StepContext. A few methods need to be excluded from that rule in order to provide skip/retry logic.
-
-
Constructor Summary
Constructors Constructor Description BatchProxyInvocationHandler(Object delegate, InjectionReferences injectionRefs, String... nonExceptionHandlingMethods)
-
-
-
Constructor Detail
-
BatchProxyInvocationHandler
public BatchProxyInvocationHandler(Object delegate, InjectionReferences injectionRefs, String... nonExceptionHandlingMethods)
- Parameters:
delegate
- the internal delegate which does the real jobinjectionRefs
- used to store any Exceptions and for CDI supportnonExceptionHandlingMethods
- array of methods which should not cause the Exceptions to be stored in the StepContext
-
-