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
ConstructorsConstructorDescriptionHK2IntoGuiceBridge(ServiceLocator locator) Creates theHK2IntoGuiceBridgeTypeLocator that must be bound into the Module with a call to bindListener. -
Method Summary
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
-
Constructor Details
-
HK2IntoGuiceBridge
Creates theHK2IntoGuiceBridgeTypeLocator 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:
configurein classcom.google.inject.AbstractModule
-