BATCH-1213:

*Removed isAbstractStep() from BeanDefinitionUtils.  The formulation "beanFactory.isTypeMatch(beanName, AbstractStep.class)" should be used instead because it will automatically check the resultant type of a FactoryBean as well.
 *Changed *StepFactoryBean's getObjectType() to return TaskletStep.class, which is the most specific class name for the resulting object.  This allows BeanFactory.isTypeMatch() to to recognize the factory bean's output properly.
 *Renamed CoreNamespaceBeanDefinitionUtils to BeanDefinitionUtils since it is no longer specific to the core namespace.
This commit is contained in:
dhgarrette
2009-05-23 16:32:12 +00:00
parent da58dfc835
commit 3005e6a810
6 changed files with 11 additions and 24 deletions

View File

@@ -124,7 +124,7 @@ public class FaultTolerantStepFactoryBeanRetryTests {
@Test
public void testType() throws Exception {
assertEquals(Step.class, factory.getObjectType());
assertTrue(Step.class.isAssignableFrom(factory.getObjectType()));
}
@Test

View File

@@ -54,7 +54,7 @@ public class RepeatOperationsStepFactoryBeanTests extends TestCase {
}
public void testType() throws Exception {
assertEquals(Step.class, factory.getObjectType());
assertTrue(Step.class.isAssignableFrom(factory.getObjectType()));
}
public void testDefaultValue() throws Exception {