diff --git a/spring-context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java b/spring-context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java index 5e00b518f2f..6a2f9538ffd 100644 --- a/spring-context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java +++ b/spring-context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java @@ -64,7 +64,7 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor /** * Specify the maximum time allotted in milliseconds for the shutdown of * any phase (group of SmartLifecycle beans with the same 'phase' value). - * The default value is 30 seconds. + *
The default value is 30 seconds.
*/
public void setTimeoutPerShutdownPhase(long timeoutPerShutdownPhase) {
this.timeoutPerShutdownPhase = timeoutPerShutdownPhase;
@@ -89,13 +89,12 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
// Lifecycle implementation
/**
- * Start all registered beans that implement Lifecycle and are
- * not already running. Any bean that implements SmartLifecycle
- * will be started within its 'phase', and all phases will be ordered
- * from lowest to highest value. All beans that do not implement
- * SmartLifecycle will be started in the default phase 0. A bean
- * declared as a dependency of another bean will be started before
- * the dependent bean regardless of the declared phase.
+ * Start all registered beans that implement {@link Lifecycle} and are not
+ * already running. Any bean that implements {@link SmartLifecycle} will be
+ * started within its 'phase', and all phases will be ordered from lowest to
+ * highest value. All beans that do not implement {@link SmartLifecycle} will be
+ * started in the default phase 0. A bean declared as a dependency of another bean
+ * will be started before the dependent bean regardless of the declared phase.
*/
@Override
public void start() {
@@ -104,13 +103,12 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
}
/**
- * Stop all registered beans that implement Lifecycle and are
- * currently running. Any bean that implements SmartLifecycle
- * will be stopped within its 'phase', and all phases will be ordered
- * from highest to lowest value. All beans that do not implement
- * SmartLifecycle will be stopped in the default phase 0. A bean
- * declared as dependent on another bean will be stopped before
- * the dependency bean regardless of the declared phase.
+ * Stop all registered beans that implement {@link Lifecycle} and are
+ * currently running. Any bean that implements {@link SmartLifecycle} will be
+ * stopped within its 'phase', and all phases will be ordered from highest to
+ * lowest value. All beans that do not implement {@link SmartLifecycle} will be
+ * stopped in the default phase 0. A bean declared as dependent on another bean
+ * will be stopped before the dependency bean regardless of the declared phase.
*/
@Override
public void stop() {
@@ -136,7 +134,7 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
}
- // internal helpers
+ // Internal helpers
private void startBeans(boolean autoStartupOnly) {
Map