Class HK2IntoGuiceBridge

java.lang.Object
com.google.inject.AbstractModule
org.jvnet.hk2.guice.bridge.api.HK2IntoGuiceBridge
All Implemented Interfaces:
com.google.inject.Module

public class HK2IntoGuiceBridge extends com.google.inject.AbstractModule
This is an implementation of com.google.inject.Module that should be used if one wishes to inject HK2 services into Guice services
Author:
jwells
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates the HK2IntoGuiceBridge TypeLocator that must be bound into the Module with a call to bindListener.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     

    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

    Methods inherited from class java.lang.Object

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

    • HK2IntoGuiceBridge

      public HK2IntoGuiceBridge(ServiceLocator locator)
      Creates the HK2IntoGuiceBridge TypeLocator that must be bound into the Module with a call to bindListener. The ServiceLocator will be consulted at this time for any types Guice cannot find. If this type is found in the ServiceLocator then that service will be instantiated by hk2
      Parameters:
      locator - The non-null locator that should be used to discover services
  • Method Details

    • configure

      protected void configure()
      Overrides:
      configure in class com.google.inject.AbstractModule