org.objectweb.fractal.julia.control.binding
Class BasicBindingControllerMixin

java.lang.Object
  extended by org.objectweb.fractal.julia.control.binding.BasicBindingControllerMixin
All Implemented Interfaces:
BindingController

public abstract class BasicBindingControllerMixin
extends Object
implements BindingController

Provides a basic implementation of the BindingController interface. This mixin uses a map to store the bindings of the component.

Requirements


Field Summary
 Map fcBindings
          The bindings of the component to which this controller object belongs.
 
Method Summary
 void bindFc(String clientItfName, Object serverItf)
           
 String[] listFc()
           
 Object lookupFc(String clientItfName)
           
 void unbindFc(String clientItfName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fcBindings

public Map fcBindings
The bindings of the component to which this controller object belongs. This map associates to each client interface name the server interface to which it is bound. If a client interface is not bound, its name is not associated to null, but to the fcBindings map itself. This way the listFc method returns the names of all the client interfaces of the component, and not only the names of the interfaces that are bound.

Method Detail

listFc

public String[] listFc()
Specified by:
listFc in interface BindingController

lookupFc

public Object lookupFc(String clientItfName)
                throws NoSuchInterfaceException
Specified by:
lookupFc in interface BindingController
Throws:
NoSuchInterfaceException

bindFc

public void bindFc(String clientItfName,
                   Object serverItf)
            throws NoSuchInterfaceException,
                   IllegalBindingException,
                   IllegalLifeCycleException
Specified by:
bindFc in interface BindingController
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException

unbindFc

public void unbindFc(String clientItfName)
              throws NoSuchInterfaceException,
                     IllegalBindingException,
                     IllegalLifeCycleException
Specified by:
unbindFc in interface BindingController
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException