Skip to content

Commit 2a8c20c

Browse files
Small refactor
1 parent 32b7c61 commit 2a8c20c

2 files changed

Lines changed: 17 additions & 21 deletions

File tree

docs/antora.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: ROOT
22
title: Spring-Data-Eclipse-Store
33
version: master
4-
display_version: '2.2.2'
4+
display_version: '2.3.0'
55
start_page: index.adoc
66
nav:
77
- modules/ROOT/nav.adoc
88
asciidoc:
99
attributes:
1010
product-name: 'Spring-Data-Eclipse-Store'
11-
display-version: '2.2.2'
12-
maven-version: '2.2.2'
11+
display-version: '2.3.0'
12+
maven-version: '2.3.0'
1313
page-editable: false
1414
page-out-of-support: false

spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/config/EclipseStoreClientConfiguration.java

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,20 @@ public abstract class EclipseStoreClientConfiguration implements EclipseStoreSto
6464
protected EclipseStoreStorage storageInstance;
6565
protected EclipseStoreTransactionManager transactionManager;
6666

67+
@Value("${spring-data-eclipse-store.context-close-shutdown-storage.enabled:true}")
68+
protected boolean contextCloseShutdownStorageEnabled;
69+
70+
@Value("${spring-data-eclipse-store.context-close-shutdown-storage.only-when-dev-tools:true}")
71+
protected boolean contextCloseShutdownStorageOnlyWhenDevTools;
72+
73+
/**
74+
* Upstream value from Spring Boot DevTools.
75+
*
76+
* @see org.springframework.boot.devtools.autoconfigure.DevToolsProperties.Restart
77+
*/
78+
@Value("${spring.devtools.restart.enabled:true}")
79+
protected boolean springDevtoolsRestartEnabled;
80+
6781
@Autowired
6882
protected EclipseStoreClientConfiguration(
6983
final EclipseStoreProperties defaultEclipseStoreProperties,
@@ -120,22 +134,6 @@ public EclipseStoreTransactionManager getTransactionManagerInstance()
120134
return this.transactionManager;
121135
}
122136

123-
// region On context closed shutdown storage
124-
125-
@Value("${spring-data-eclipse-store.context-close-shutdown-storage.enabled:true}")
126-
protected boolean contextCloseShutdownStorageEnabled;
127-
128-
@Value("${spring-data-eclipse-store.context-close-shutdown-storage.only-when-dev-tools:true}")
129-
protected boolean contextCloseShutdownStorageOnlyWhenDevTools;
130-
131-
/**
132-
* Upstream value from Spring Boot DevTools.
133-
*
134-
* @see org.springframework.boot.devtools.autoconfigure.DevToolsProperties.Restart
135-
*/
136-
@Value("${spring.devtools.restart.enabled:true}")
137-
protected boolean springDevtoolsRestartEnabled;
138-
139137
protected boolean shouldShutdownStorageOnContextClosed()
140138
{
141139
// Did the user disable support for this?
@@ -192,6 +190,4 @@ public void shutdownStorageOnContextClosed(final ContextClosedEvent event)
192190
this.storageInstance.stop();
193191
}
194192
}
195-
196-
// endregion
197193
}

0 commit comments

Comments
 (0)