org.objectweb.dream.control.binding
Class ContainerContextualBindingControllerMixin

java.lang.Object
  extended by org.objectweb.dream.control.binding.ContainerContextualBindingControllerMixin
All Implemented Interfaces:
ContextualBindingController, BindingController, Controller

public abstract class ContainerContextualBindingControllerMixin
extends Object
implements Controller, ContextualBindingController

Provides a container based implementation of the ContextualBindingControllerinterface. This mixin implements the ContextualBindingControllermethods through delegation to the encapsulated "user component".
Note: this mixin cannot be used when the content and controllers of components are merged.
Requirements


Field Summary
 Object fcContent
          The "user component" encapsulated in this container component.
 
Method Summary
abstract  void _super_initFcController(InitializationContext ic)
          The initFcControllermethod overridden by this mixin.
 void bindFc(String clientItfName, Object serverItf)
           
 void bindFc(String clientItfName, Object serverItf, Object hints)
          Binds the client interface whose name is given to a server interface.
 void initFcController(InitializationContext ic)
          Initializes the fields of this mixin and then calls the overridden method.
 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

fcContent

public Object fcContent
The "user component" encapsulated in this container component.

Method Detail

initFcController

public void initFcController(InitializationContext ic)
                      throws InstantiationException
Initializes the fields of this mixin and then calls the overridden method.

Specified by:
initFcController in interface Controller
Parameters:
ic - information about the component to which this controller object belongs.
Throws:
InstantiationException - if the initialization fails.

listFc

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

lookupFc

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

bindFc

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

bindFc

public void bindFc(String clientItfName,
                   Object serverItf,
                   Object hints)
            throws NoSuchInterfaceException,
                   IllegalBindingException,
                   IllegalLifeCycleException
Description copied from interface: ContextualBindingController
Binds the client interface whose name is given to a server interface. More precisely, binds the client interface of the component to which this interface belongs, and whose name is equal to the given name, to the given server interface. The given server interface must be in the same address space as the client interface. Contextual information can be given using the hints parameter.

Specified by:
bindFc in interface ContextualBindingController
Parameters:
clientItfName - the name of a client interface of the component to which this interface belongs.
serverItf - a server interface.
hints - contextual information.
Throws:
NoSuchInterfaceException - if there is no such client interface.
IllegalBindingException - if the binding cannot be created.
IllegalLifeCycleException - if this component has a LifeCycleController interface, but it is not in an appropriate state to perform this operation.
See Also:
ContextualBindingController.bindFc(String, Object, Object)

unbindFc

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

_super_initFcController

public abstract void _super_initFcController(InitializationContext ic)
                                      throws InstantiationException
The initFcControllermethod overridden by this mixin.

Parameters:
ic - information about the component to which this controller object belongs.
Throws:
InstantiationException - if the initialization fails.


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.