|
|
|
@ -98,7 +98,7 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor |
|
|
|
public static final String ON_REFRESH_VALUE = "onRefresh"; |
|
|
|
public static final String ON_REFRESH_VALUE = "onRefresh"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final boolean checkpointOnRefresh = |
|
|
|
private static boolean checkpointOnRefresh = |
|
|
|
ON_REFRESH_VALUE.equalsIgnoreCase(SpringProperties.getProperty(CHECKPOINT_PROPERTY_NAME)); |
|
|
|
ON_REFRESH_VALUE.equalsIgnoreCase(SpringProperties.getProperty(CHECKPOINT_PROPERTY_NAME)); |
|
|
|
|
|
|
|
|
|
|
|
private static final boolean exitOnRefresh = |
|
|
|
private static final boolean exitOnRefresh = |
|
|
|
@ -194,6 +194,7 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void onRefresh() { |
|
|
|
public void onRefresh() { |
|
|
|
if (checkpointOnRefresh) { |
|
|
|
if (checkpointOnRefresh) { |
|
|
|
|
|
|
|
checkpointOnRefresh = false; |
|
|
|
new CracDelegate().checkpointRestore(); |
|
|
|
new CracDelegate().checkpointRestore(); |
|
|
|
} |
|
|
|
} |
|
|
|
if (exitOnRefresh) { |
|
|
|
if (exitOnRefresh) { |
|
|
|
|