Class GuiceInstanceListener

java.lang.Object
ru.vyarus.dropwizard.guice.module.jersey.debug.service.GuiceInstanceListener
All Implemented Interfaces:
com.google.inject.spi.ProvisionListener

public class GuiceInstanceListener extends Object implements com.google.inject.spi.ProvisionListener
Listens guice for created services and checks correctness for services registered by JerseyInstaller based installers.

Some services will be registered before debug service gets injected into listener instance, so before this listener simply collects all created objects to check after.

Since:
15.01.2016
  • Constructor Details

    • GuiceInstanceListener

      public GuiceInstanceListener()
  • Method Details

    • onProvision

      public <T> void onProvision(com.google.inject.spi.ProvisionListener.ProvisionInvocation<T> provision)
      Specified by:
      onProvision in interface com.google.inject.spi.ProvisionListener
    • setContextDebugService

      @Inject public void setContextDebugService(ContextDebugService contextDebugService)
      Inject debug service.
      Parameters:
      contextDebugService - debug service