public List<ItemReadListenerProxy> getItemReadListeners(Step step, InjectionReferences injectionRefs, RuntimeStepExecution stepContext) { List<ListenerInfo> stepListenerInfo = getStepListenerInfo(step, injectionRefs); List<ItemReadListenerProxy> retVal = new ArrayList<ItemReadListenerProxy>(); for (ListenerInfo li : stepListenerInfo) { if (li.isItemReadListener()) { ItemReadListenerProxy proxy = new ItemReadListenerProxy((ItemReadListener) li.getArtifact()); proxy.setStepContext(stepContext); retVal.add(proxy); } } return retVal; }
readListenerProxy.beforeRead(); readListenerProxy.afterRead(itemRead); stepContext.setException(e); for (ItemReadListenerProxy readListenerProxy : itemReadListeners) { readListenerProxy.onReadError(e); readListenerProxy.onReadError(e);
readListenerProxy.beforeRead(); readListenerProxy.afterRead(itemRead); runtimeStepExecution.setException(e); for (ItemReadListenerProxy readListenerProxy : itemReadListeners) { readListenerProxy.onReadError(e);
readListenerProxy.beforeRead(); readListenerProxy.afterRead(itemRead); stepContext.setException(e); for (ItemReadListenerProxy readListenerProxy : itemReadListeners) { readListenerProxy.onReadError(e);
public List<ItemReadListenerProxy> getItemReadListeners(Step step, InjectionReferences injectionRefs, StepContextImpl stepContext) { List<ListenerInfo> stepListenerInfo = getStepListenerInfo(step, injectionRefs); List<ItemReadListenerProxy> retVal = new ArrayList<ItemReadListenerProxy>(); for (ListenerInfo li : stepListenerInfo) { if (li.isItemReadListener()) { ItemReadListenerProxy proxy = new ItemReadListenerProxy((ItemReadListener) li.getArtifact()); proxy.setStepContext(stepContext); retVal.add(proxy); } } return retVal; }
public List<ItemReadListenerProxy> getItemReadListeners(Step step, InjectionReferences injectionRefs, StepContextImpl stepContext) { List<ListenerInfo> stepListenerInfo = getStepListenerInfo(step, injectionRefs); List<ItemReadListenerProxy> retVal = new ArrayList<ItemReadListenerProxy>(); for (ListenerInfo li : stepListenerInfo) { if (li.isItemReadListener()) { ItemReadListenerProxy proxy = new ItemReadListenerProxy((ItemReadListener) li.getArtifact()); proxy.setStepContext(stepContext); retVal.add(proxy); } } return retVal; }