org.objectweb.dream.adl
Class AbstractDelagatingChecker

java.lang.Object
  extended by org.objectweb.dream.adl.AbstractDelagatingChecker
All Implemented Interfaces:
Checker, BindingController
Direct Known Subclasses:
FractalTypeChecker

public abstract class AbstractDelagatingChecker
extends Object
implements Checker, BindingController

Abstract Checker component using delegation. The check method first call the client interface (if bound) then call the doChek(Object, Object)method.


Field Summary
static String CHECKER_OPT_ITF_NAME
          The name of the optionnal client interface used for delegation
protected  Checker optChekerItf
           
 
Constructor Summary
AbstractDelagatingChecker()
           
 
Method Summary
 void bindFc(String clientItfName, Object serverItf)
           
 void check(Object legacyComponent, Object node)
          Check that the ADL description of the specified component is conform to its implementation.
protected abstract  void doChek(Object legacyComponent, Object node)
           
 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

CHECKER_OPT_ITF_NAME

public static final String CHECKER_OPT_ITF_NAME
The name of the optionnal client interface used for delegation

See Also:
Constant Field Values

optChekerItf

protected Checker optChekerItf
Constructor Detail

AbstractDelagatingChecker

public AbstractDelagatingChecker()
Method Detail

check

public void check(Object legacyComponent,
                  Object node)
           throws ADLException
Description copied from interface: Checker
Check that the ADL description of the specified component is conform to its implementation.

Specified by:
check in interface Checker
Parameters:
legacyComponent - the component.
node - the AST of its ADL description.
Throws:
ADLException - if the ADL description is not conform to the component's implementation.
See Also:
Checker.check(java.lang.Object, java.lang.Object)

doChek

protected abstract void doChek(Object legacyComponent,
                               Object node)
                        throws ADLException
Throws:
ADLException

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, 2005 - INRIA Rhone-Alpes - All Rights Reserved.