Replace resource property with location for PropertyFactoryBean

This commit is contained in:
Vishal Puri 2007-05-16 00:31:31 +00:00
parent ee2eac5a51
commit 74123cd234
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ public class PrincipalRepositoryBeanDefinitionParser extends AbstractBeanDefinit
// properties element
RootBeanDefinition defintion = new RootBeanDefinition(PropertiesFactoryBean.class);
String propertyValue = ele.getAttribute(RESOURCE);
defintion.getPropertyValues().addPropertyValue(RESOURCE, propertyValue);
defintion.getPropertyValues().addPropertyValue("location", propertyValue);
defintion.setSource(parserContext.extractSource(ele));
return parserContext.getReaderContext().registerWithGeneratedName(defintion);
}