org.objectweb.fractal.adl.implementations
Class ImplementationCompiler

java.lang.Object
  extended by org.objectweb.fractal.adl.implementations.ImplementationCompiler
All Implemented Interfaces:
PrimitiveCompiler, org.objectweb.fractal.api.control.BindingController
Direct Known Subclasses:
VirtualNodeImplementationCompiler

public class ImplementationCompiler
extends java.lang.Object
implements org.objectweb.fractal.api.control.BindingController, PrimitiveCompiler

A PrimitiveCompiler to compile Implementation nodes in definitions.


Field Summary
 ImplementationBuilder builder
          The ImplementationBuilder used by this compiler.
static java.lang.String BUILDER_BINDING
          Name of the mandatory interface bound to the ImplementationBuilder used by this compiler.
 
Constructor Summary
ImplementationCompiler()
           
 
Method Summary
 void bindFc(java.lang.String itf, java.lang.Object value)
           
 void compile(java.util.List<ComponentContainer> path, ComponentContainer container, TaskMap tasks, java.util.Map<java.lang.Object,java.lang.Object> context)
          Compile a single component.
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String itf)
           
 AbstractInstanceProviderTask newCreateTask(java.util.List<ComponentContainer> path, ComponentContainer container, java.lang.String name, java.lang.String definition, java.lang.Object controller, java.lang.Object implementation, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 void unbindFc(java.lang.String itf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUILDER_BINDING

public static final java.lang.String BUILDER_BINDING
Name of the mandatory interface bound to the ImplementationBuilder used by this compiler.

See Also:
Constant Field Values

builder

public ImplementationBuilder builder
The ImplementationBuilder used by this compiler.

Constructor Detail

ImplementationCompiler

public ImplementationCompiler()
Method Detail

listFc

public java.lang.String[] listFc()
Specified by:
listFc in interface org.objectweb.fractal.api.control.BindingController

lookupFc

public java.lang.Object lookupFc(java.lang.String itf)
Specified by:
lookupFc in interface org.objectweb.fractal.api.control.BindingController

bindFc

public void bindFc(java.lang.String itf,
                   java.lang.Object value)
Specified by:
bindFc in interface org.objectweb.fractal.api.control.BindingController

unbindFc

public void unbindFc(java.lang.String itf)
Specified by:
unbindFc in interface org.objectweb.fractal.api.control.BindingController

compile

public void compile(java.util.List<ComponentContainer> path,
                    ComponentContainer container,
                    TaskMap tasks,
                    java.util.Map<java.lang.Object,java.lang.Object> context)
             throws ADLException
Description copied from interface: PrimitiveCompiler
Compile a single component.

Specified by:
compile in interface PrimitiveCompiler
Parameters:
path - the path of the component.
container - the component.
tasks - the task map.
context - additional parameters.
Throws:
ADLException - if something wrong happen.

newCreateTask

public AbstractInstanceProviderTask newCreateTask(java.util.List<ComponentContainer> path,
                                                  ComponentContainer container,
                                                  java.lang.String name,
                                                  java.lang.String definition,
                                                  java.lang.Object controller,
                                                  java.lang.Object implementation,
                                                  java.util.Map<java.lang.Object,java.lang.Object> context)


Copyright © 2001-2010 ObjectWeb Consortium. All Rights Reserved.