IN PROGRESS - issue SWF-720: Multiple checkboxes to Collection mapping

http://jira.springframework.org/browse/SWF-720
This commit is contained in:
Keith Donald
2008-06-30 23:05:40 +00:00
parent c706bf4e5f
commit 2962d438be
10 changed files with 42 additions and 24 deletions

View File

@@ -219,6 +219,6 @@ class FlowExecutorFactoryBean implements FactoryBean, ApplicationContextAware, I
}
private Class fromStringToClass(String name) {
return conversionService.getClassByName(name);
return conversionService.getClassForAlias(name);
}
}

View File

@@ -237,7 +237,7 @@ class FlowRegistryFactoryBean implements FactoryBean, InitializingBean {
}
private Class fromStringToClass(String type) {
return flowBuilderServices.getConversionService().getClassByName(type);
return flowBuilderServices.getConversionService().getClassForAlias(type);
}
private FlowDefinition buildFlowDefinition(FlowBuilderInfo builderInfo) {

View File

@@ -910,7 +910,7 @@ public class FlowModelFlowBuilder extends AbstractFlowBuilder {
}
private Class toClass(String name) {
return getLocalContext().getConversionService().getClassByName(name);
return getLocalContext().getConversionService().getClassForAlias(name);
}
private static class FlowRelativeResourceLoader implements ResourceLoader {

View File

@@ -124,8 +124,8 @@ public class FlowBuilderContextImpl implements FlowBuilderContext {
return getFlowBuilderServices().getConversionService().getConversionExecutor(sourceClass, targetClass);
}
public Class getClassByName(String name) {
return getFlowBuilderServices().getConversionService().getClassByName(name);
public Class getClassForAlias(String name) {
return getFlowBuilderServices().getConversionService().getClassForAlias(name);
}
}

View File

@@ -59,7 +59,7 @@ public class FlowBuilderServicesBeanDefinitionParserTests extends TestCase {
throw new UnsupportedOperationException("Auto-generated method stub");
}
public Class getClassByName(String alias) throws ConversionExecutionException {
public Class getClassForAlias(String alias) throws ConversionExecutionException {
throw new UnsupportedOperationException("Auto-generated method stub");
}