public class HK2ToGuiceTypeListenerImpl
extends java.lang.Object
implements com.google.inject.spi.TypeListener
Modifier and Type | Class and Description |
---|---|
private static class |
HK2ToGuiceTypeListenerImpl.HK2FieldInjector<T> |
Modifier and Type | Field and Description |
---|---|
private ServiceLocator |
locator |
Constructor and Description |
---|
HK2ToGuiceTypeListenerImpl(ServiceLocator locator)
Creates the
HK2IntoGuiceBridge TypeLocator that must
be bound into the Module with a call to bindListener. |
Modifier and Type | Method and Description |
---|---|
<I> void |
hear(com.google.inject.TypeLiteral<I> literal,
com.google.inject.spi.TypeEncounter<I> encounter) |
private static boolean |
isQualifier(java.lang.annotation.Annotation anno) |
private final ServiceLocator locator
public HK2ToGuiceTypeListenerImpl(ServiceLocator locator)
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 hk2locator
- The non-null locator that should be used to discover
services