Class ShutdownEndpoint
- java.lang.Object
- org.springframework.boot.actuate.endpoint.AbstractEndpoint<Map<String,Object>>
- org.springframework.boot.actuate.endpoint.ShutdownEndpoint
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,Endpoint<Map<String,Object>>
,org.springframework.context.ApplicationContextAware
,org.springframework.context.EnvironmentAware
@ConfigurationProperties(prefix="endpoints.shutdown") public class ShutdownEndpoint extends AbstractEndpoint<Map<String,Object>> implements org.springframework.context.ApplicationContextAware
Endpoint
to shutdown theApplicationContext
.
Constructor Summary
Constructors Constructor Description ShutdownEndpoint()
Create a newShutdownEndpoint
instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
invoke()
Called to invoke the endpoint.void
setApplicationContext(org.springframework.context.ApplicationContext context)
Methods inherited from class org.springframework.boot.actuate.endpoint.AbstractEndpoint
getEnvironment, getId, isEnabled, isSensitive, setEnabled, setEnvironment, setId, setSensitive
Constructor Detail
ShutdownEndpoint
public ShutdownEndpoint()
Create a newShutdownEndpoint
instance.
Method Detail
invoke
public Map<String,Object> invoke()
Description copied from interface:Endpoint
Called to invoke the endpoint.
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException