Class ShutdownModule
java.lang.Object
com.google.inject.AbstractModule
com.peterphi.std.guice.common.shutdown.ShutdownModule
- All Implemented Interfaces:
com.google.inject.Module
public class ShutdownModule
extends com.google.inject.AbstractModule
A Guice module that adds a Singleton
This module also exposes a shutdown method that triggers the shutdown of the associated ShutdownManager
ShutdownManager
bindingThis module also exposes a shutdown method that triggers the shutdown of the associated ShutdownManager
-
Constructor Summary
-
Method Summary
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
ShutdownModule
public ShutdownModule()
-
-
Method Details
-
configure
protected void configure()- Overrides:
configure
in classcom.google.inject.AbstractModule
-
getShutdownManager
-
shutdown
public void shutdown()Triggers the shutdown action
-