Class AbstractCheckedModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.opendaylight.infrautils.inject.guice.testutils.AbstractCheckedModule
-
- All Implemented Interfaces:
com.google.inject.Module
- Direct Known Subclasses:
AbstractGuiceJsr250Module
@Deprecated public abstract class AbstractCheckedModule extends com.google.inject.AbstractModule
Deprecated.Use org.opendaylight.infrautils.inject.guice.AbstractCheckedModule instead.Convenience Guice module support class with configure method that allows throwing checked exceptions, which are caught and re-thrown as uncheckedModuleSetupRuntimeException
.- Author:
- Michael Vorburger.ch
-
-
Constructor Summary
Constructors Constructor Description AbstractCheckedModule()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract void
checkedConfigure()
Deprecated.protected void
configure()
Deprecated.Configures aBinder
via the exposed methods.-
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
-
-
-
-
Method Detail
-
configure
protected final void configure() throws ModuleSetupRuntimeException
Deprecated.Configures aBinder
via the exposed methods.- Overrides:
configure
in classcom.google.inject.AbstractModule
- Throws:
ModuleSetupRuntimeException
- if binding failed
-
-