public class GuiceComponentRegistry extends java.lang.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(java.lang.Class componentType)
Registers a component to be used when the required type is the component, or
any of their interfaces and superclasses.
|
void |
register(java.lang.Class requiredType,
java.lang.Class componentType)
Registers a component to be used only when the required type is required.
|
void |
registerInScope(java.util.Map<java.lang.Class,java.lang.Class> classes,
com.google.inject.Scope scope) |
public GuiceComponentRegistry(com.google.inject.Binder binder, com.google.inject.multibindings.Multibinder<StereotypeHandler> stereotypeHandlers)
public void register(java.lang.Class requiredType, java.lang.Class componentType)
ComponentRegistry
register
in interface ComponentRegistry
componentType
- the component typepublic void deepRegister(java.lang.Class componentType)
ComponentRegistry
deepRegister
in interface ComponentRegistry
componentType
- the component typepublic void registerInScope(java.util.Map<java.lang.Class,java.lang.Class> classes, com.google.inject.Scope scope)
Copyright © 2013 Caelum. All Rights Reserved.