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:
dsyer
2007-10-21 15:10:41 +00:00
parent a5cd014700
commit 089ac8f171
9 changed files with 11 additions and 61 deletions

View File

@@ -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;
}