public interface ComponentRegistry
Represents the registry of all components allowing them to be registered for injection.
This interface doesnt allow component lookup, so during component registration phase no provider tries to instantiate something before it's time to do so.
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 register(java.lang.Class<?> requiredType, java.lang.Class<?> componentType)
componentType
- the component typevoid deepRegister(java.lang.Class<?> componentType)
componentType
- the component typeCopyright © 2013 Caelum. All Rights Reserved.