Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit c8148fd

Browse files
committed
Updated spring configuration file
1 parent 0deec74 commit c8148fd

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

src/main/resources/logback.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
</pattern>
66
</encoder>
77
</appender>
8-
98
<root level="DEBUG">
109
<appender-ref ref="stdout" />
1110
</root>

src/main/resources/spring/spring-reloadableProperties.xml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,22 @@ http://www.springframework.org/schema/beans http://www.springframework.org/schem
66
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
77
">
88

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-
159
<!-- Define event bus for use with GuavaPropertyChangedEventNotifier -->
1610
<bean class="com.google.common.eventbus.EventBus" id="propertiesEventBus" />
1711

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>
1925

2026
<bean id="readablePlaceholder" class="com.morgan.design.properties.internal.ReadablePropertySourcesPlaceholderConfigurer">
2127
<property name="ignoreUnresolvablePlaceholders" value="false" />
@@ -24,7 +30,7 @@ http://www.springframework.org/schema/context http://www.springframework.org/sch
2430
<list>
2531
<value>classpath*:META-INF/*.properties</value>
2632
<value>classpath:test.properties</value>
27-
<value>file:${CONFIG_DIR}/leadx.properties</value>
33+
<value>file:${CONFIG_DIR}/global.properties</value>
2834
</list>
2935
</property>
3036
</bean>

0 commit comments

Comments
 (0)