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.assembly;
8   
9   import org.mule.config.spring.parsers.assembly.configuration.PropertyConfiguration;
10  
11  import org.springframework.beans.factory.config.BeanDefinition;
12  import org.springframework.beans.factory.support.BeanDefinitionBuilder;
13  
14  public class TwoStageMapBeanAssemblerFactory implements BeanAssemblerFactory
15  {
16  
17      private BeanAssemblerStore store;
18  
19      public TwoStageMapBeanAssemblerFactory(BeanAssemblerStore store)
20      {
21          this.store = store;
22      }
23  
24      public BeanAssembler newBeanAssembler(
25              PropertyConfiguration beanConfig, BeanDefinitionBuilder bean,
26              PropertyConfiguration targetConfig, BeanDefinition target)
27      {
28          return new TwoStageMapBeanAssembler(store, beanConfig, bean, targetConfig, target);
29      }
30  
31      public interface BeanAssemblerStore
32      {
33  
34          public void saveBeanAssembler(BeanAssembler beanAssembler);
35  
36      }
37  
38  
39  }