Skip to content

Commit 1f068fc

Browse files
committed
Rename checkpoint property to "spring.context.checkpoint"
See gh-30606
1 parent 85d8102 commit 1f068fc

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

framework-docs/modules/ROOT/pages/integration/checkpoint-restore.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ NOTE: If the checkpoint is created on a warmed-up JVM, the restored JVM will be
2424

2525
== Automatic checkpoint/restore at startup
2626

27-
When the `-Dspring.checkpoint.restore=onRefresh` Java system property is set, a checkpoint is created automatically during the startup at `LifecycleProcessor.onRefresh` level. At this phase, all non-lazy initialized singletons are instantiated, `InitializingBean.afterPropertiesSet` callbacks have been invoked, but not `Lifecycle.start` ones and `ContextRefreshedEvent` has not yet been published.
27+
When the `-Dspring.context.checkpoint=onRefresh` Java system property is set, a checkpoint is created automatically during the startup at `LifecycleProcessor.onRefresh` level. At this phase, all non-lazy initialized singletons are instantiated, `InitializingBean.afterPropertiesSet` callbacks have been invoked, but not `Lifecycle.start` ones and `ContextRefreshedEvent` has not yet been published.
2828

2929
WARNING: As mentioned above, and especially in use cases where the CRaC files are shipped as part of a deployable artifact (a container image for example), operate with the assumption that any sensitive data "seen" by the JVM ends up in the CRaC files, and assess carefully the related security implications.
3030

spring-context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,24 +68,24 @@
6868
public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactoryAware {
6969

7070
/**
71-
* Property name for checkpoint restore: {@value}.
71+
* Property name for a common context checkpoint: {@value}.
7272
* @since 6.1
73-
* @see #CHECKPOINT_RESTORE_ON_REFRESH
73+
* @see #CHECKPOINT_ON_REFRESH
7474
* @see org.crac.Core#checkpointRestore()
7575
*/
76-
public static final String CHECKPOINT_RESTORE_PROPERTY_NAME = "spring.checkpoint.restore";
76+
public static final String CHECKPOINT_PROPERTY_NAME = "spring.context.checkpoint";
7777

7878
/**
79-
* Recognized value for checkpoint restore property: {@value}.
79+
* Recognized value for the context checkpoint property: {@value}.
8080
* @since 6.1
81-
* @see #CHECKPOINT_RESTORE_PROPERTY_NAME
81+
* @see #CHECKPOINT_PROPERTY_NAME
8282
* @see org.crac.Core#checkpointRestore()
8383
*/
84-
public static final String CHECKPOINT_RESTORE_ON_REFRESH = "onRefresh";
84+
public static final String CHECKPOINT_ON_REFRESH = "onRefresh";
8585

8686

87-
private final static boolean checkpointRestoreOnRefresh = CHECKPOINT_RESTORE_ON_REFRESH.equalsIgnoreCase(
88-
SpringProperties.getProperty(CHECKPOINT_RESTORE_PROPERTY_NAME));
87+
private final static boolean checkpointRestoreOnRefresh = CHECKPOINT_ON_REFRESH.equalsIgnoreCase(
88+
SpringProperties.getProperty(CHECKPOINT_PROPERTY_NAME));
8989

9090
private final Log logger = LogFactory.getLog(getClass());
9191

0 commit comments

Comments
 (0)