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 unchecked ModuleSetupRuntimeException.
Author:
Michael Vorburger.ch
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
    Deprecated.
     
    protected final void
    Deprecated.
    Configures a Binder 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, requestInjection, requestStaticInjection, requireBinding, requireBinding

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractCheckedModule

      public AbstractCheckedModule()
      Deprecated.
  • Method Details

    • configure

      protected final void configure() throws org.opendaylight.infrautils.inject.ModuleSetupRuntimeException
      Deprecated.
      Configures a Binder via the exposed methods.
      Overrides:
      configure in class com.google.inject.AbstractModule
      Throws:
      org.opendaylight.infrautils.inject.ModuleSetupRuntimeException - if binding failed
    • checkedConfigure

      protected abstract void checkedConfigure() throws Exception
      Deprecated.
      Throws:
      Exception