public class GuiceComponentRegistry extends Object implements ComponentRegistry
| Constructor and Description |
|---|
GuiceComponentRegistry(com.google.inject.Binder binder,
com.google.inject.multibindings.Multibinder<StereotypeHandler> stereotypeHandlers) |
| Modifier and Type | Method and Description |
|---|---|
void |
deepRegister(Class componentType)
Registers a component to be used when the required type is the component, or
any of their interfaces and superclasses.
|
void |
register(Class requiredType,
Class componentType)
Registers a component to be used only when the required type is required.
|
void |
registerInScope(Map<Class,Class> classes,
com.google.inject.Scope scope) |
public GuiceComponentRegistry(com.google.inject.Binder binder,
com.google.inject.multibindings.Multibinder<StereotypeHandler> stereotypeHandlers)
public void register(Class requiredType, Class componentType)
ComponentRegistryregister in interface ComponentRegistrycomponentType - the component typepublic void deepRegister(Class componentType)
ComponentRegistrydeepRegister in interface ComponentRegistrycomponentType - the component typeCopyright © 2014 Caelum. All Rights Reserved.