org.ow2.jasmine.jade.fractal.julia.control.reversebinding
Class BasicReverseBindingControllerMixin

java.lang.Object
  extended by org.ow2.jasmine.jade.fractal.julia.control.reversebinding.BasicReverseBindingControllerMixin
All Implemented Interfaces:
ReverseBindingController

public abstract class BasicReverseBindingControllerMixin
extends java.lang.Object
implements ReverseBindingController

Provides a basic implementation of the ReverseBindingController interface.

Author:
Noel de palma, Fabienne Boyer

Field Summary
 java.util.Map<java.lang.String,java.util.List<java.lang.Object>> reverseBinding
          the reverse bindings of the component to which this controller is assigned
 
Method Summary
 void bindSource(java.lang.String serverItfName, java.lang.Object clientItf)
          Register a reverse binding.
 java.lang.String[] listSource()
          Return an array of reverse bindings name of the component to which this controller interface belongs.
 java.lang.Object[] lookupBindingSource(java.lang.String serverItfName)
          Lookup the reverse bindings of the component to which this controller interface belongs.
 void unbindSource(java.lang.String serverItfName, java.lang.Object clientItf)
          Unregister a reverse binding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reverseBinding

public java.util.Map<java.lang.String,java.util.List<java.lang.Object>> reverseBinding
the reverse bindings of the component to which this controller is assigned

Method Detail

bindSource

public void bindSource(java.lang.String serverItfName,
                       java.lang.Object clientItf)
                throws org.objectweb.fractal.api.NoSuchInterfaceException,
                       org.objectweb.fractal.api.control.IllegalBindingException,
                       org.objectweb.fractal.api.control.IllegalLifeCycleException
Description copied from interface: ReverseBindingController
Register a reverse binding.

Specified by:
bindSource in interface ReverseBindingController
Parameters:
serverItfName - the name of a server interface of the component to which this interface belongs.
clientItf - the client interface which is bound to the 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 registered.
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.

unbindSource

public void unbindSource(java.lang.String serverItfName,
                         java.lang.Object clientItf)
                  throws org.objectweb.fractal.api.NoSuchInterfaceException,
                         org.objectweb.fractal.api.control.IllegalBindingException,
                         org.objectweb.fractal.api.control.IllegalLifeCycleException
Description copied from interface: ReverseBindingController
Unregister a reverse binding.

Specified by:
unbindSource in interface ReverseBindingController
Parameters:
serverItfName - the name of a server interface of the component to which this interface belongs.
clientItf - the client interface which is bound to the server interface. client itf must implem hashcode & equals method
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException - if there is no such client interface.
org.objectweb.fractal.api.control.IllegalBindingException - if the binding cannot be registered.
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.

lookupBindingSource

public java.lang.Object[] lookupBindingSource(java.lang.String serverItfName)
                                       throws org.objectweb.fractal.api.NoSuchInterfaceException
Description copied from interface: ReverseBindingController
Lookup the reverse bindings of the component to which this controller interface belongs.

Specified by:
lookupBindingSource in interface ReverseBindingController
Parameters:
serverItfName - the name of a server interface of the component to which this controller interface belongs.
Returns:
an array of interfaces bound to the server interface
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException - if there is no such interface.

listSource

public java.lang.String[] listSource()
Description copied from interface: ReverseBindingController
Return an array of reverse bindings name of the component to which this controller interface belongs.

Specified by:
listSource in interface ReverseBindingController
Returns:
an array of String containing bindings name, null if no component is bound to the component this interface belongs.


Copyright © 2008 OW2 Consortium. All Rights Reserved.