@@ -6,16 +6,22 @@ http://www.springframework.org/schema/beans http://www.springframework.org/schem
6
6
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
7
7
" >
8
8
9
- <context : component-scan base-package =" com.leadx.lib.spring"
10
- use-default-filters=" false" >
11
- <context : include-filter type =" regex"
12
- expression=" com\.leadx\.lib\.spring\.AutowirePropertyPostProcessor" />
13
- </context : component-scan >
14
-
15
9
<!-- Define event bus for use with GuavaPropertyChangedEventNotifier -->
16
10
<bean class =" com.google.common.eventbus.EventBus" id =" propertiesEventBus" />
17
11
18
- <context : component-scan base-package =" com.morgan.design.properties.conversion" />
12
+ <bean class =" com.morgan.design.properties.conversion.DefaultPropertyConversionService" id =" conversionService" />
13
+
14
+ <bean class =" com.morgan.design.properties.internal.GuavaPropertyChangedEventNotifier" autowire =" constructor" id =" eventNotifier" >
15
+ <constructor-arg ref =" propertiesEventBus" />
16
+ </bean >
17
+
18
+ <bean class =" com.morgan.design.properties.internal.SubstitutingPropertyResolver" id =" propertyResolver" />
19
+
20
+ <bean class =" com.morgan.design.properties.internal.ReloadablePropertyPostProcessor" >
21
+ <constructor-arg ref =" propertyConfigurator" />
22
+ <constructor-arg ref =" eventNotifier" />
23
+ <constructor-arg ref =" conversionService" />
24
+ </bean >
19
25
20
26
<bean id =" readablePlaceholder" class =" com.morgan.design.properties.internal.ReadablePropertySourcesPlaceholderConfigurer" >
21
27
<property name =" ignoreUnresolvablePlaceholders" value =" false" />
@@ -24,7 +30,7 @@ http://www.springframework.org/schema/context http://www.springframework.org/sch
24
30
<list >
25
31
<value >classpath*:META-INF/*.properties</value >
26
32
<value >classpath:test.properties</value >
27
- <value >file:${CONFIG_DIR}/leadx .properties</value >
33
+ <value >file:${CONFIG_DIR}/global .properties</value >
28
34
</list >
29
35
</property >
30
36
</bean >
0 commit comments