List of usage examples for org.springframework.batch.core.scope.context ChunkContext attributeNames
@Override
public String[] attributeNames()
From source file:org.springframework.xd.dirt.plugins.job.support.listener.SimpleXdChunkListener.java
private ChunkContextInfo convertChunkContext(ChunkContext context) { final ChunkContextInfo chunkContextInfo = new ChunkContextInfo(); chunkContextInfo.setComplete(context.isComplete()); chunkContextInfo.setStepExecution(context.getStepContext().getStepExecution()); final String[] attributeNames = context.attributeNames(); for (String attributeName : attributeNames) { final Object attribute = context.getAttribute(attributeName); chunkContextInfo.getAttributes().put(attributeName, attribute); }//from w ww. j a v a2 s. c om return chunkContextInfo; }