BATCH-2086: default writer implementations need public setter for name
This commit is contained in:
@@ -51,6 +51,17 @@ public abstract class ItemStreamSupport implements ItemStream {
|
||||
@Override
|
||||
public void update(ExecutionContext executionContext) {
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the component which will be used as a stem for keys in the
|
||||
* {@link ExecutionContext}. Subclasses should provide a default value, e.g.
|
||||
* the short form of the class name.
|
||||
*
|
||||
* @param name the name for the component
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.setExecutionContextName(name);
|
||||
}
|
||||
|
||||
protected void setExecutionContextName(String name) {
|
||||
executionContextUserSupport.setName(name);
|
||||
|
||||
@@ -392,17 +392,6 @@ InitializingBean {
|
||||
return state;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the component which will be used as a stem for keys in the
|
||||
* {@link ExecutionContext}. Subclasses should provide a default value, e.g.
|
||||
* the short form of the class name.
|
||||
*
|
||||
* @param name the name for the component
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.setExecutionContextName(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Encapsulates the runtime state of the writer. All state changing
|
||||
* operations on the writer go through this class.
|
||||
|
||||
@@ -179,16 +179,6 @@ public abstract class AbstractItemCountingItemStreamItemReader<T> extends Abstra
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the component which will be used as a stem for keys in the
|
||||
* {@link ExecutionContext}. Subclasses should provide a default value, e.g.
|
||||
* the short form of the class name.
|
||||
*
|
||||
* @param name the name for the component
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.setExecutionContextName(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the flag that determines whether to save internal data for
|
||||
|
||||
Reference in New Issue
Block a user