|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.utils.ioc.modules.IoCBindingManager
public class IoCBindingManager
Manages the IoC bindings.
Nested Class Summary | |
---|---|
protected static class |
IoCBindingManager.BindingValitationResultAction
Use to inform the BindingManager process of the action to perform for the validated binding |
Method Summary | |
---|---|
void |
addBinding(IoCBinding binding)
Adds a new binding to the manager. |
void |
addModuleBindings(IIoCModule module)
Adds all bindings of the given module. |
IoCBinding |
getBinding(Class<?> interfaceType)
Returns the first available implementation for the given interface type. |
IoCBinding |
getBinding(Class<?> interfaceType,
String id)
Returns the implementation with a given id for the given interface type. |
Map<Class<?>,List<IoCBinding>> |
getBindings()
Returns all the available bindings. |
List<IoCBinding> |
getBindings(Class<?> interfaceType)
Returns all the available bindings for a given interface. |
static IoCBindingManager |
getInstance()
Singleton instance accessor. |
void |
processDynamicMudules()
After all modules are initialized the dynamic modules should be processed |
protected void |
resetBindings()
Clears all existing bindings. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static IoCBindingManager getInstance()
public void addBinding(IoCBinding binding)
binding
- the binding to addpublic void addModuleBindings(IIoCModule module)
module
- the IoC modulepublic IoCBinding getBinding(Class<?> interfaceType)
interfaceType
- the interface type for which the implementation is requested
public IoCBinding getBinding(Class<?> interfaceType, String id)
interfaceType
- the interface type for which the implementation is requested.id
- the implementation id
public Map<Class<?>,List<IoCBinding>> getBindings()
public List<IoCBinding> getBindings(Class<?> interfaceType)
interfaceType
- the interface type for which the implementations are requested.
public void processDynamicMudules()
protected void resetBindings()
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |