public class HK2ToGuiceTypeListenerImpl extends Object implements com.google.inject.spi.TypeListener
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) |
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
servicesCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.