org.ow2.jasmine.jade.fractal.julia.control.binding
Class BindingWithReverseBindingControllerNotifierMixin

java.lang.Object
  extended by org.ow2.jasmine.jade.fractal.julia.control.binding.BindingWithReverseBindingControllerNotifierMixin
All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController

public abstract class BindingWithReverseBindingControllerNotifierMixin
extends java.lang.Object
implements org.objectweb.fractal.api.control.BindingController

Provides an implementation of the BindingController interface which manages the reverse bindings : any binding operation performed on the current client component is notified to the reverse binding controller of the relevant server component.

Author:
Fabienne Boyer
contributor : Julien Legrand

Field Summary
 org.objectweb.fractal.api.Component _this_weaveableC
          The weaveableC field required by this mixin.
 
Method Summary
abstract  void _super_bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
          The bindFc method overriden by this mixin.
abstract  void _super_unbindFc(java.lang.String clientItfName)
          The unbindFc method overriden by this mixin.
abstract  java.lang.Object _this_lookupFc(java.lang.String clientItfName)
          The listFc method required by this mixin.
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
          Calls the overriden bindFc method and then register the reverse binding.
 void unbindFc(java.lang.String clientItfName)
          Calls the overriden method and then unregister the reverse binding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.fractal.api.control.BindingController
listFc, lookupFc
 

Field Detail

_this_weaveableC

public org.objectweb.fractal.api.Component _this_weaveableC
The weaveableC field required by this mixin. This field is supposed to reference the Component interface of the component to which this controller object belongs.

Method Detail

bindFc

public void bindFc(java.lang.String clientItfName,
                   java.lang.Object serverItf)
            throws org.objectweb.fractal.api.NoSuchInterfaceException,
                   org.objectweb.fractal.api.control.IllegalBindingException,
                   org.objectweb.fractal.api.control.IllegalLifeCycleException
Calls the overriden bindFc method and then register the reverse binding.

Specified by:
bindFc in interface org.objectweb.fractal.api.control.BindingController
Parameters:
clientItfName - the name of a client interface of the component to which this interface belongs.
serverItf - a server interface.
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException - if there is no such client interface.
org.objectweb.fractal.api.control.IllegalBindingException - if the binding cannot be created.
org.objectweb.fractal.api.control.IllegalLifeCycleException - if this component has a LifeCycleController interface, but it is not in an appropriate state to perform this operation.

unbindFc

public void unbindFc(java.lang.String clientItfName)
              throws org.objectweb.fractal.api.NoSuchInterfaceException,
                     org.objectweb.fractal.api.control.IllegalBindingException,
                     org.objectweb.fractal.api.control.IllegalLifeCycleException
Calls the overriden method and then unregister the reverse binding.

Specified by:
unbindFc in interface org.objectweb.fractal.api.control.BindingController
Parameters:
clientItfName - the name of a client interface of the component to which this interface belongs.
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException - if there is no such client interface.
org.objectweb.fractal.api.control.IllegalBindingException - if the binding cannot be removed.
org.objectweb.fractal.api.control.IllegalLifeCycleException - if this component has a LifeCycleController interface, but it is not in an appropriate state to perform this operation.

_super_bindFc

public abstract void _super_bindFc(java.lang.String clientItfName,
                                   java.lang.Object serverItf)
                            throws org.objectweb.fractal.api.NoSuchInterfaceException,
                                   org.objectweb.fractal.api.control.IllegalBindingException,
                                   org.objectweb.fractal.api.control.IllegalLifeCycleException
The bindFc method overriden by this mixin.

Parameters:
clientItfName - the name of a client interface of the component to which this interface belongs.
serverItf - a server interface.
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException - if there is no such client interface.
org.objectweb.fractal.api.control.IllegalBindingException - if the binding cannot be created.
org.objectweb.fractal.api.control.IllegalLifeCycleException - if this component has a LifeCycleController interface, but it is not in an appropriate state to perform this operation.

_super_unbindFc

public abstract void _super_unbindFc(java.lang.String clientItfName)
                              throws org.objectweb.fractal.api.NoSuchInterfaceException,
                                     org.objectweb.fractal.api.control.IllegalBindingException,
                                     org.objectweb.fractal.api.control.IllegalLifeCycleException
The unbindFc method overriden by this mixin.

Parameters:
clientItfName - the name of a client interface of the component to which this interface belongs.
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException - if there is no such client interface.
org.objectweb.fractal.api.control.IllegalBindingException - if the binding cannot be removed.
org.objectweb.fractal.api.control.IllegalLifeCycleException - if this component has a LifeCycleController interface, but it is not in an appropriate state to perform this operation.

_this_lookupFc

public abstract java.lang.Object _this_lookupFc(java.lang.String clientItfName)
                                         throws org.objectweb.fractal.api.NoSuchInterfaceException
The listFc method required by this mixin.

Parameters:
clientItfName - the name of a client interface of the component to which this interface belongs.
Returns:
the server interface to which the given interface is bound, or null if it is not bound.
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException - if the component to which this interface belongs does not have a client interface whose name is equal to the given name.


Copyright © 2008 OW2 Consortium. All Rights Reserved.