Spring Data for VMware GemFire
Class AbstractSmartLifecycle
java.lang.Object
org.springframework.data.gemfire.config.support.AbstractSmartLifecycle
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
- Direct Known Subclasses:
ClusterConfigurationConfiguration.ClusterSchemaObjectInitializer
public abstract class AbstractSmartLifecycle
extends Object
implements org.springframework.context.ApplicationContextAware, org.springframework.context.SmartLifecycle
AbstractSmartLifecycle is an abstract base class implementing the SpringSmartLifecycle interface
to support custom implementations.- Since:
- 2.0.2
- See Also:
-
SmartLifecycle
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<org.springframework.context.ApplicationContext>intgetPhase()booleanbooleanprotected org.springframework.context.ApplicationContextvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) protected voidsetRunning(boolean running) voidstart()voidstop()void
-
Field Details
-
DEFAULT_PHASE
protected static final int DEFAULT_PHASE- See Also:
-
-
Constructor Details
-
AbstractSmartLifecycle
public AbstractSmartLifecycle()
-
-
Method Details
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
setRunning
protected void setRunning(boolean running) -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getApplicationContext
-
requireApplicationContext
protected org.springframework.context.ApplicationContext requireApplicationContext() -
getPhase
public int getPhase()- Specified by:
getPhasein interfaceorg.springframework.context.Phased- Specified by:
getPhasein interfaceorg.springframework.context.SmartLifecycle
-
start
public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
stop
- Specified by:
stopin interfaceorg.springframework.context.SmartLifecycle
-