Class AbstractCheckedModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.opendaylight.infrautils.inject.guice.AbstractCheckedModule
-
- All Implemented Interfaces:
com.google.inject.Module
- Direct Known Subclasses:
AutoWiringModule
public abstract class AbstractCheckedModule extends com.google.inject.AbstractModuleConvenience 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()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidcheckedConfigure()protected voidconfigure()Configures aBindervia 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 ModuleSetupRuntimeExceptionConfigures aBindervia the exposed methods.- Overrides:
configurein classcom.google.inject.AbstractModule- Throws:
ModuleSetupRuntimeException- if binding failed
-
-