org.objectweb.jonathan.tools.compilers
Class ImplicitFactoryCompiler

java.lang.Object
  extended byorg.objectweb.jonathan.tools.compilers.ImplicitFactoryCompiler
All Implemented Interfaces:
TagCompiler

public class ImplicitFactoryCompiler
extends java.lang.Object
implements TagCompiler

Implements the Implicit Factory XML to java compilation. Used by the XML to java translator: Kcf2java. This is not an Kcf2java built-in tag compiler. It must therefore be provided in the Kcf2java property file (which is an Kcf2java command line argument) in order to allow Kcf2java to compile XML configuration files with containing valid implicit factory tags.


Constructor Summary
ImplicitFactoryCompiler()
           
 
Method Summary
 java.lang.String writeComponent(nanoxml.XMLElement _current_component, java.lang.String _element_name, java.lang.String _configuration_var_name, java.io.Writer _writer, java.lang.String _configuration_name)
          Writes the java code translation of the given implicit factory XML description (as a XMLElement).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImplicitFactoryCompiler

public ImplicitFactoryCompiler()
Method Detail

writeComponent

public java.lang.String writeComponent(nanoxml.XMLElement _current_component,
                                       java.lang.String _element_name,
                                       java.lang.String _configuration_var_name,
                                       java.io.Writer _writer,
                                       java.lang.String _configuration_name)
                                throws java.io.IOException
Writes the java code translation of the given implicit factory XML description (as a XMLElement).

Specified by:
writeComponent in interface TagCompiler
Parameters:
_current_component - the implicit factory component XML description
_element_name - its element's name
_configuration_var_name - unused
_writer - used to write the java translation code
_configuration_name - unused
Returns:
the newly created implicit factory java component's variable name
Throws:
java.io.IOException - if something goes wrong.