1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
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 | 0 | { |
21 | 0 | this.store = store; |
22 | 0 | } |
23 | |
|
24 | |
public BeanAssembler newBeanAssembler( |
25 | |
PropertyConfiguration beanConfig, BeanDefinitionBuilder bean, |
26 | |
PropertyConfiguration targetConfig, BeanDefinition target) |
27 | |
{ |
28 | 0 | 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 | |
} |