Class InstallerBinder

java.lang.Object
org.glassfish.jersey.internal.inject.AbstractBinder
ru.vyarus.dropwizard.guice.module.jersey.hk2.InstallerBinder
All Implemented Interfaces:
org.glassfish.jersey.internal.inject.Binder

public class InstallerBinder extends org.glassfish.jersey.internal.inject.AbstractBinder
HK2 module, which must be registered before HK2 context start (to properly bind resources). Registers all guice extensions into HK2 context as factory, which delegates to guice provider. Such bridging is required to delegate objects creation to guice and properly use guice scopes.

If jersey extension is already a factory, then factory will be registered directly.

Since:
16.11.2014
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    InstallerBinder(com.google.inject.Injector injector, StatsTracker tracker, LifecycleSupport lifecycle)
    Create binder.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     

    Methods inherited from class org.glassfish.jersey.internal.inject.AbstractBinder

    bind, bind, bind, bindAsContract, bindAsContract, bindAsContract, bindFactory, bindFactory, bindFactory, createManagedInstanceProvider, getBindings, install

    Methods inherited from class java.lang.Object

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

    • InstallerBinder

      public InstallerBinder(com.google.inject.Injector injector, StatsTracker tracker, LifecycleSupport lifecycle)
      Create binder.
      Parameters:
      injector - injector
      tracker - tracker
      lifecycle - listeners support
  • Method Details

    • configure

      protected void configure()
      Specified by:
      configure in class org.glassfish.jersey.internal.inject.AbstractBinder