org.ow2.jasmine.jade.reflex.control.binding
Class ReflexBindingMixin

java.lang.Object
  extended by org.ow2.jasmine.jade.reflex.control.binding.ReflexBindingMixin
All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController, BindingNotificationController

public abstract class ReflexBindingMixin
extends java.lang.Object
implements org.objectweb.fractal.api.control.BindingController, BindingNotificationController

Provides an implementation of the BindingController interface which manages the causal connection with the dual level (i.e meta/execution) : any binding operation performed on the current component is notified to the binding controller of dual component.

Author:
Fabienne Boyer

Field Summary
 org.objectweb.fractal.api.control.NameController _this_weaveableOptNC
          The Component interface of the component to which this controller object belongs.
 ReflexController _this_weaveableOptRC
          The weaveableOptRC 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.
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
          Calls the overriden bindFc method and then notifies the dual level of the binding.
 void bindFcNotification(java.lang.String clientItfName, java.lang.Object serverItf)
          Calls the overriden bindFc method.
 void unbindFc(java.lang.String clientItfName)
          Calls the overriden method and then notifies the dual level of the unbinding.
 void unbindFcNotification(java.lang.String clientItfName)
          Calls the overriden unbindFc method.
 
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_weaveableOptNC

public org.objectweb.fractal.api.control.NameController _this_weaveableOptNC
The Component interface of the component to which this controller object belongs.


_this_weaveableOptRC

public ReflexController _this_weaveableOptRC
The weaveableOptRC field required by this mixin. This field is supposed to reference the ReflexController 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 notifies the dual level of the 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 notifies the dual level of the unbinding.

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.

bindFcNotification

public void bindFcNotification(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.

Specified by:
bindFcNotification in interface BindingNotificationController
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.

unbindFcNotification

public void unbindFcNotification(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 unbindFc method.

Specified by:
unbindFcNotification in interface BindingNotificationController
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.


Copyright © 2008 OW2 Consortium. All Rights Reserved.