01: /*
02: * $Id: AbstractSingleParentFamilyChildDefinitionParser.java 10256 2008-01-08 15:20:25Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.config.spring.parsers.delegate;
12:
13: import org.mule.config.spring.parsers.MuleChildDefinitionParser;
14: import org.mule.config.spring.parsers.MuleDefinitionParser;
15: import org.mule.config.spring.parsers.MuleDefinitionParserConfiguration;
16: import org.mule.config.spring.parsers.assembly.configuration.PropertyConfiguration;
17:
18: import org.springframework.beans.factory.config.BeanDefinition;
19:
20: public class AbstractSingleParentFamilyChildDefinitionParser extends
21: AbstractSingleParentFamilyDefinitionParser implements
22: MuleChildDefinitionParser {
23:
24: protected MuleDefinitionParserConfiguration addDelegate(
25: MuleDefinitionParser delegate) {
26: return addDelegateAsChild(delegate);
27: }
28:
29: public void forceParent(BeanDefinition parent) {
30: ((MuleChildDefinitionParser) getDelegate(0))
31: .forceParent(parent);
32: }
33:
34: public PropertyConfiguration getTargetPropertyConfiguration() {
35: return ((MuleChildDefinitionParser) getDelegate(0))
36: .getTargetPropertyConfiguration();
37: }
38:
39: }
|