Class ShutdownEndpoint
- java.lang.Object
- org.springframework.boot.actuate.context.ShutdownEndpoint
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Endpoint(id="shutdown", enableByDefault=false) public class ShutdownEndpoint extends Object implements org.springframework.context.ApplicationContextAware
Endpoint
to shutdown theApplicationContext
.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description ShutdownEndpoint()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setApplicationContext(org.springframework.context.ApplicationContext context)
Map<String,String>
shutdown()
Constructor Detail
ShutdownEndpoint
public ShutdownEndpoint()
Method Detail
shutdown
@WriteOperation public Map<String,String> shutdown()
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