+ make use of ParsingUtils inside CacheParser

SGF-10
SGF-11
This commit is contained in:
costin
2010-08-26 21:26:28 +03:00
parent ee3e1c19d2
commit 559a5ffc6d

View File

@@ -40,15 +40,8 @@ class CacheParser extends AbstractSingleBeanDefinitionParser {
protected void doParse(Element element, BeanDefinitionBuilder builder) {
super.doParse(element, builder);
String attr = element.getAttribute("cache-xml-location");
if (StringUtils.hasText(attr)) {
builder.addPropertyValue("cacheXml", attr);
}
attr = element.getAttribute("properties-ref");
if (StringUtils.hasText(attr)) {
builder.addPropertyReference("properties", attr);
}
ParsingUtils.setPropertyValue(element, builder, "cache-xml-location", "cacheXml");
ParsingUtils.setPropertyValue(element, builder, "properties-ref", "properties");
}
@Override