org.objectweb.fractal.adl.components
Class ComponentCompiler

java.lang.Object
  extended byorg.objectweb.fractal.adl.components.ComponentCompiler
All Implemented Interfaces:
BindingController, Compiler

public class ComponentCompiler
extends Object
implements BindingController, Compiler

Basic implementation of the Compiler interface. This implementation delegates definition compilation requests to a set of PrimitiveCompilers.


Field Summary
static String PRIMITIVE_COMPILERS_BINDING
          Name of the collection interface bound to the PrimitiveCompilers used by this compiler.
 Map primitiveCompilers
          The primitive compilers used by this compiler.
 
Constructor Summary
ComponentCompiler()
           
 
Method Summary
 void bindFc(String itf, Object value)
           
 void compile(Definition definition, TaskMap tasks, Map context)
          Compiles the given ADL definition.
 String[] listFc()
           
 Object lookupFc(String itf)
           
 void unbindFc(String itf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIMITIVE_COMPILERS_BINDING

public static final String PRIMITIVE_COMPILERS_BINDING
Name of the collection interface bound to the PrimitiveCompilers used by this compiler.

See Also:
Constant Field Values

primitiveCompilers

public Map primitiveCompilers
The primitive compilers used by this compiler.

Constructor Detail

ComponentCompiler

public ComponentCompiler()
Method Detail

listFc

public String[] listFc()
Specified by:
listFc in interface BindingController

lookupFc

public Object lookupFc(String itf)
Specified by:
lookupFc in interface BindingController

bindFc

public void bindFc(String itf,
                   Object value)
Specified by:
bindFc in interface BindingController

unbindFc

public void unbindFc(String itf)
Specified by:
unbindFc in interface BindingController

compile

public void compile(Definition definition,
                    TaskMap tasks,
                    Map context)
             throws ADLException
Description copied from interface: Compiler
Compiles the given ADL definition.

Specified by:
compile in interface Compiler
Parameters:
definition - the ADL definition to be compiled.
tasks - where the tasks compiled from the definition must be put.
context - optional additional information.
Throws:
ADLException - if the given definition cannot be compiled.