Interface SmartLifecycleSupport
- All Superinterfaces:
org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
- All Known Implementing Classes:
ClientRegionFactoryBean
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface SmartLifecycleSupport
extends org.springframework.context.SmartLifecycle
The
SmartLifecycleSupport
interface is an extension of Spring's SmartLifecycle
interface
providing default, convenient behavior for many of the lifecycle methods as well as a serving
as a FunctionalInterface
.- Since:
- 1.0.0
- See Also:
-
FunctionalInterface
SmartLifecycle
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
static final boolean
static final int
-
Method Summary
Methods inherited from interface org.springframework.context.Lifecycle
start
-
Field Details
-
DEFAULT_AUTO_STARTUP
static final boolean DEFAULT_AUTO_STARTUP- See Also:
-
DEFAULT_IS_RUNNING
static final boolean DEFAULT_IS_RUNNING- See Also:
-
DEFAULT_PHASE
static final int DEFAULT_PHASE- See Also:
-
-
Method Details
-
isAutoStartup
default boolean isAutoStartup()- Specified by:
isAutoStartup
in interfaceorg.springframework.context.SmartLifecycle
-
stop
- Specified by:
stop
in interfaceorg.springframework.context.SmartLifecycle
-
stop
default void stop()- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
isRunning
default boolean isRunning()- Specified by:
isRunning
in interfaceorg.springframework.context.Lifecycle
-
getPhase
default int getPhase()- Specified by:
getPhase
in interfaceorg.springframework.context.Phased
- Specified by:
getPhase
in interfaceorg.springframework.context.SmartLifecycle
-