private static ItemWriter cloneItemWriter(ItemWriter itemWriter) { ItemWriter newItemWriter = jslFactory.createItemWriter(); newItemWriter.setRef(itemWriter.getRef()); newItemWriter.setProperties(cloneJSLProperties(itemWriter.getProperties())); return newItemWriter; }
private static ItemWriter cloneItemWriter(ItemWriter itemWriter) { ItemWriter newItemWriter = jslFactory.createItemWriter(); newItemWriter.setRef(itemWriter.getRef()); newItemWriter.setProperties(cloneJSLProperties(itemWriter.getProperties())); return newItemWriter; }
private static ItemWriter cloneItemWriter(ItemWriter itemWriter) { ItemWriter newItemWriter = jslFactory.createItemWriter(); newItemWriter.setRef(itemWriter.getRef()); newItemWriter.setProperties(cloneJSLProperties(itemWriter.getProperties())); return newItemWriter; }
@Override public ItemWriter substituteProperties(ItemWriter writer, Properties submittedProps, Properties parentProps) { //resolve all the properties used in attributes and update the JAXB model writer.setRef(this.replaceAllProperties(writer.getRef(), submittedProps, parentProps)); // Resolve all the properties defined for this artifact if (writer.getProperties() != null) { this.resolveElementProperties(writer.getProperties().getPropertyList(), submittedProps, parentProps); } return writer; }
@Override public ItemWriter substituteProperties(ItemWriter writer, Properties submittedProps, Properties parentProps) { //resolve all the properties used in attributes and update the JAXB model writer.setRef(this.replaceAllProperties(writer.getRef(), submittedProps, parentProps)); // Resolve all the properties defined for this artifact if (writer.getProperties() != null) { this.resolveElementProperties(writer.getProperties().getPropertyList(), submittedProps, parentProps); } return writer; }
@Override public ItemWriter substituteProperties(ItemWriter writer, Properties submittedProps, Properties parentProps) { //resolve all the properties used in attributes and update the JAXB model writer.setRef(this.replaceAllProperties(writer.getRef(), submittedProps, parentProps)); // Resolve all the properties defined for this artifact if (writer.getProperties() != null) { this.resolveElementProperties(writer.getProperties().getPropertyList(), submittedProps, parentProps); } return writer; }
InjectionReferences injectionRef = new InjectionReferences(runtimeWorkUnitExecution.getWorkUnitJobContext(), runtimeStepExecution, itemWriterProps); writerProxy = ProxyFactory.createItemWriterProxy(itemWriter.getRef(), injectionRef, runtimeStepExecution); if (logger.isLoggable(Level.FINE)) { logger.fine("Created ItemWriterProxy for " + itemWriter.getRef()); throw new BatchContainerServiceException("Cannot create the ItemWriter [" + itemWriter.getRef() + "]", e);
itemWriterProps); writerProxy = ProxyFactory.createItemWriterProxy(itemWriter.getRef(), injectionRef, stepContext); if (logger.isLoggable(Level.FINE)) { logger.fine("Created ItemWriterProxy for " + itemWriter.getRef()); throw new BatchContainerServiceException("Cannot create the ItemWriter [" + itemWriter.getRef() + "]", e);
itemWriterProps); writerProxy = ProxyFactory.createItemWriterProxy(itemWriter.getRef(), injectionRef, stepContext); if (logger.isLoggable(Level.FINE)) { logger.fine("Created ItemWriterProxy for " + itemWriter.getRef()); throw new BatchContainerServiceException("Cannot create the ItemWriter [" + itemWriter.getRef() + "]", e);