org.objectweb.fractal.adl.components

Class ComponentCompiler

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.

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)

Field Details

PRIMITIVE_COMPILERS_BINDING

public static final String PRIMITIVE_COMPILERS_BINDING


primitiveCompilers

public Map primitiveCompilers
The primitive compilers used by this compiler.

Method Details

bindFc

public void bindFc(String itf,
                   Object value)


compile

public void compile(Definition definition,
                    TaskMap tasks,
                    Map context)
            throws ADLException
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.


listFc

public String[] listFc()


lookupFc

public Object lookupFc(String itf)


unbindFc

public void unbindFc(String itf)