org.objectweb.dream.adl
Class ReconfigurationImpl

java.lang.Object
  extended byorg.objectweb.dream.adl.ReconfigurationImpl
All Implemented Interfaces:
BindingController, Reconfiguration

public class ReconfigurationImpl
extends Object
implements Reconfiguration, BindingController

Implementation of the Reconfigurationinterface.


Constructor Summary
ReconfigurationImpl()
           
 
Method Summary
 void addComponents(Component composite, String reconfADL, Map context)
          Adds sub component to the given composite component.
 void bindFc(String clientItfName, Object serverItf)
           
 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
 

Constructor Detail

ReconfigurationImpl

public ReconfigurationImpl()
Method Detail

addComponents

public void addComponents(Component composite,
                          String reconfADL,
                          Map context)
                   throws ADLException
Description copied from interface: Reconfiguration
Adds sub component to the given composite component. The given ADL definition is a description of the given composite, where sub components set as legacy (tag <legacy contingency="mandatory"/>) are existing components and others are added components. Legacy component are retreived as direct or indirect sub component of the given composite. They can also be retreive in the context map with a key of the form : "legacy:./<path-to-the-legacy-component>"

Specified by:
addComponents in interface Reconfiguration
Parameters:
composite - the componite component.
reconfADL - the reconfiguration ADL.
context - a context.
Throws:
ADLException - if an error occurs.
See Also:
Reconfiguration.addComponents(org.objectweb.fractal.api.Component, java.lang.String, java.util.Map)

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(java.lang.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(java.lang.String, java.lang.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(java.lang.String)


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