01: /*
02: * $Id: ConstructorReference.java 10494 2008-01-23 21:09:56Z acooke $
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.processors;
12:
13: import org.mule.config.spring.parsers.PostProcessor;
14: import org.mule.config.spring.parsers.assembly.BeanAssembler;
15:
16: import org.w3c.dom.Element;
17: import org.springframework.beans.factory.xml.ParserContext;
18:
19: public class ConstructorReference implements PostProcessor {
20:
21: public String reference;
22:
23: public ConstructorReference(String reference) {
24: this .reference = reference;
25: }
26:
27: public void postProcess(ParserContext unused,
28: BeanAssembler assembler, Element element) {
29: assembler.getBean().addConstructorArgReference(reference);
30: }
31:
32: }
|