RESOLVED - issue BATCH-180: JobConfigurations do not get their names set if they are child beans
http://opensource.atlassian.com/projects/spring/browse/BATCH-180 Removed setName() from *Configuration - you have to use the bean id or setBeanName().
This commit is contained in:
@@ -29,7 +29,7 @@ import org.springframework.beans.factory.BeanNameAware;
|
||||
* @author Dave Syer
|
||||
*
|
||||
*/
|
||||
public class AbstractStepConfiguration extends StepConfigurationSupport implements BeanNameAware {
|
||||
public class AbstractStepConfiguration extends StepConfigurationSupport {
|
||||
|
||||
private int skipLimit = 0;
|
||||
|
||||
@@ -43,25 +43,13 @@ public class AbstractStepConfiguration extends StepConfigurationSupport implemen
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenent constructor for setting only the name property.
|
||||
* Convenient constructor for setting only the name property.
|
||||
* @param name
|
||||
*/
|
||||
public AbstractStepConfiguration(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the name property if it has not already been set explicitly (and is
|
||||
* therefore not null).
|
||||
*
|
||||
* @see org.springframework.beans.factory.BeanNameAware#setBeanName(java.lang.String)
|
||||
*/
|
||||
public void setBeanName(String name) {
|
||||
if (getName() == null) {
|
||||
setName(name);
|
||||
}
|
||||
}
|
||||
|
||||
public ExceptionHandler getExceptionHandler() {
|
||||
return exceptionHandler;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user