Class 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 Detail

      • BatchProxyInvocationHandler

        public BatchProxyInvocationHandler​(Object delegate,
                                           InjectionReferences injectionRefs,
                                           String... nonExceptionHandlingMethods)
        Parameters:
        delegate - the internal delegate which does the real job
        injectionRefs - used to store any Exceptions and for CDI support
        nonExceptionHandlingMethods - array of methods which should not cause the Exceptions to be stored in the StepContext