View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.config.spring.parsers.processors;
8   
9   import org.mule.config.spring.parsers.PostProcessor;
10  import org.mule.config.spring.parsers.assembly.BeanAssembler;
11  
12  import org.w3c.dom.Element;
13  import org.springframework.beans.factory.xml.ParserContext;
14  
15  public class ConstructorReference implements PostProcessor
16  {
17  
18      public String reference;
19  
20      public ConstructorReference(String reference)
21      {
22          this.reference = reference;
23      }
24  
25      public void postProcess(ParserContext unused, BeanAssembler assembler, Element element)
26      {
27          assembler.getBean().addConstructorArgReference(reference);
28      }
29  
30  }