Class ShutdownEndpoint
java.lang.Object
org.springframework.boot.actuate.context.ShutdownEndpoint
- All Implemented Interfaces:
Aware
,ApplicationContextAware
@Endpoint(id="shutdown",
enableByDefault=false)
public class ShutdownEndpoint
extends Object
implements ApplicationContextAware
@Endpoint
to shutdown the ApplicationContext
.- Since:
- 2.0.0
- Author:
- Dave Syer, Christian Dupuis, Andy Wilkinson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setApplicationContext
(ApplicationContext context) shutdown()
-
Constructor Details
-
ShutdownEndpoint
public ShutdownEndpoint()
-
-
Method Details
-
shutdown
-
setApplicationContext
- Specified by:
setApplicationContext
in interfaceApplicationContextAware
- Throws:
BeansException
-