pt.digitalis.utils.ioc.modules
Class IoCBinder

java.lang.Object
  extended by pt.digitalis.utils.ioc.modules.IoCBinder

public class IoCBinder
extends Object

Defines a binding point between interfaces and implementations.

Author:
Pedro Viegas pviegas@digitalis.pt, Rodrigo Gonçalves rgoncalves@digitalis.pt

Constructor Summary
IoCBinder()
           
 
Method Summary
 void addBindingsToManager()
          Add the temporary bindings list to the manager.
 IoCBinding bind(Class<?> interfaceType, Class<?> implementationType)
          Binds an implementation type to an interface type.
 void install(IIoCModule module)
          Installs a new module.
 void updateBinding(IoCBinding binding)
          Updates the binding entry on the temporary module bindings map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IoCBinder

public IoCBinder()
Method Detail

bind

public IoCBinding bind(Class<?> interfaceType,
                       Class<?> implementationType)
Binds an implementation type to an interface type.

Parameters:
interfaceType - the interface type
implementationType - the implementation type
Returns:
the binding object

updateBinding

public void updateBinding(IoCBinding binding)
Updates the binding entry on the temporary module bindings map.

Parameters:
binding - the binding to update

addBindingsToManager

public void addBindingsToManager()
Add the temporary bindings list to the manager.


install

public void install(IIoCModule module)
Installs a new module.

Parameters:
module - the new module to install


Copyright © 2012 Digitalis Informática Lda. All Rights Reserved.