Changeset 5339
- Timestamp:
- 09/04/10 21:53:11 (17 months ago)
- Location:
- branches/release-0.13.x/pfixcore
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/release-0.13.x/pfixcore/projects/core/schema/context-xml-service-config.xsd
r3962 r5339 316 316 </xs:sequence> 317 317 <xs:attribute name="class" use="required"/> 318 <xs:attribute name="bean-name" use="optional" /> 319 <xs:attribute name="scope" use="optional" /> 320 <xs:attribute name="parent-bean-ref" use="optional"/> 318 321 </xs:complexType> 319 322 -
branches/release-0.13.x/pfixcore/src/org/pustefixframework/config/contextxmlservice/parser/ContextResourceParsingHandler.java
r3942 r5339 61 61 62 62 Element element = (Element)context.getNode(); 63 ParsingUtils.checkAttributes(element, new String[] {"class"}, new String[] {"bean-name", "scope" });63 ParsingUtils.checkAttributes(element, new String[] {"class"}, new String[] {"bean-name", "scope", "parent-bean-ref"}); 64 64 65 65 ContextConfigImpl config = ParsingUtils.getSingleTopObject(ContextConfigImpl.class, context); … … 112 112 113 113 BeanDefinitionBuilder beanBuilder = BeanDefinitionBuilder.genericBeanDefinition(implClass); 114 String parentBeanRef = element.getAttribute("parent-bean-ref").trim(); 115 if (parentBeanRef.length() != 0) { 116 beanBuilder.setParentName(parentBeanRef); 117 } 114 118 beanBuilder.setScope(scope); 115 119 BeanDefinition beanDefinition = beanBuilder.getBeanDefinition();
