org.objectweb.proactive.core.component.controller
Class ProActiveBindingControllerImpl

java.lang.Object
  extended byorg.objectweb.proactive.core.component.controller.AbstractRequestHandler
      extended byorg.objectweb.proactive.core.component.controller.AbstractProActiveController
          extended byorg.objectweb.proactive.core.component.controller.ProActiveBindingControllerImpl
All Implemented Interfaces:
BindingController, Interface, ProActiveBindingController, ProActiveController, RequestHandler, java.io.Serializable

public class ProActiveBindingControllerImpl
extends AbstractProActiveController
implements ProActiveBindingController, java.io.Serializable

Implementation of the BindingController interface.

Author:
Matthieu Morel
See Also:
Serialized Form

Constructor Summary
ProActiveBindingControllerImpl(Component owner)
           
 
Method Summary
 void addBinding(Binding binding)
           
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
          implementation of the interface BindingController see BindingController.bindFc(java.lang.String, java.lang.Object)
protected  void checkBindability(java.lang.String clientItfName, Interface serverItf)
           
protected  void checkClientInterfaceName(java.lang.String clientItfName)
           
protected  void checkUnbindability(java.lang.String clientItfName)
           
protected  boolean existsBinding(java.lang.String clientItfName)
           
 java.lang.Object getBinding(java.lang.String clientItfName)
           
 java.util.List getSingleInterfacesNames()
          Returns the interfaces with cardinality equal to single
 java.lang.Boolean isBound()
           
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String clientItfName)
          see
 java.lang.Object removeBinding(java.lang.String clientItfName)
           
protected  void setControllerItfType()
           
 void unbindFc(java.lang.String clientItfName)
           
 
Methods inherited from class org.objectweb.proactive.core.component.controller.AbstractProActiveController
checkLifeCycleIsStopped, getFcItfName, getFcItfOwner, getFcItfType, getHierarchicalType, isComposite, isFcInternalItf, isParallel, isPrimitive, setItfType
 
Methods inherited from class org.objectweb.proactive.core.component.controller.AbstractRequestHandler
handleRequest, nextHandler, setNextHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProActiveBindingControllerImpl

public ProActiveBindingControllerImpl(Component owner)
Method Detail

setControllerItfType

protected void setControllerItfType()
Specified by:
setControllerItfType in class AbstractProActiveController

addBinding

public void addBinding(Binding binding)

checkBindability

protected void checkBindability(java.lang.String clientItfName,
                                Interface serverItf)
                         throws NoSuchInterfaceException,
                                IllegalBindingException,
                                IllegalLifeCycleException
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException

checkUnbindability

protected void checkUnbindability(java.lang.String clientItfName)
                           throws NoSuchInterfaceException,
                                  IllegalBindingException,
                                  IllegalLifeCycleException
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException

removeBinding

public java.lang.Object removeBinding(java.lang.String clientItfName)
Parameters:
clientItfName - the name of the client interface
Returns:
a Binding object if single binding, List of Binding objects otherwise

getBinding

public java.lang.Object getBinding(java.lang.String clientItfName)
Parameters:
clientItfName - the name of the client interface
Returns:
a Binding object if single binding, List of Binding objects otherwise

lookupFc

public java.lang.Object lookupFc(java.lang.String clientItfName)
                          throws NoSuchInterfaceException
see

Specified by:
lookupFc in interface BindingController
Throws:
NoSuchInterfaceException

bindFc

public void bindFc(java.lang.String clientItfName,
                   java.lang.Object serverItf)
            throws NoSuchInterfaceException,
                   IllegalBindingException,
                   IllegalLifeCycleException
implementation of the interface BindingController see BindingController.bindFc(java.lang.String, java.lang.Object)

Specified by:
bindFc in interface BindingController
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException

unbindFc

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

listFc

public java.lang.String[] listFc()
Specified by:
listFc in interface BindingController
See Also:
In case of a client collection interface, only the interfaces generated at runtime and members of the collection are returned (a reference on the collection interface itself is not returned, because it is just a typing artifact and does not exist at runtime).

existsBinding

protected boolean existsBinding(java.lang.String clientItfName)
                         throws NoSuchInterfaceException
Throws:
NoSuchInterfaceException

checkClientInterfaceName

protected void checkClientInterfaceName(java.lang.String clientItfName)
                                 throws NoSuchInterfaceException
Throws:
NoSuchInterfaceException

getSingleInterfacesNames

public java.util.List getSingleInterfacesNames()
Returns the interfaces with cardinality equal to single

Returns:
a list of the names of the interfaces with single cardinality

isBound

public java.lang.Boolean isBound()
Specified by:
isBound in interface ProActiveBindingController
Returns:
true if this component is bound on a client interface


Copyright 2001-2005 INRIA All Rights Reserved.