org.eclipse.actf.validation.doc.codeproc
Class DefaultCodeProcessorFactory

java.lang.Object
  extended by org.eclipse.actf.validation.doc.codeproc.DefaultCodeProcessorFactory
All Implemented Interfaces:
ICodeProcessorFactory

public class DefaultCodeProcessorFactory
extends Object
implements ICodeProcessorFactory

default implementation of a factory

Author:
Mike Squillace

Constructor Summary
DefaultCodeProcessorFactory()
          create a new DefaultCodeProcessorFactory and use the .properties file packaged with ACTF to find processor
DefaultCodeProcessorFactory(InputStream stream)
          create a new DefaultCodeProcessorFactory and use the specified stream to find processor
DefaultCodeProcessorFactory(String filename)
          create a new DefaultCodeProcessorFactory and use the .properties file with the given name to find processor
 
Method Summary
 ICodeProcessor getCodeProcessor(String lang, IModel model)
          retrieve a ICodeProcessor for the given language.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCodeProcessorFactory

public DefaultCodeProcessorFactory()
create a new DefaultCodeProcessorFactory and use the .properties file packaged with ACTF to find processor


DefaultCodeProcessorFactory

public DefaultCodeProcessorFactory(String filename)
                            throws IOException
create a new DefaultCodeProcessorFactory and use the .properties file with the given name to find processor

Parameters:
filename - -- nname of .properties file to use
Throws:
IOException

DefaultCodeProcessorFactory

public DefaultCodeProcessorFactory(InputStream stream)
create a new DefaultCodeProcessorFactory and use the specified stream to find processor

Parameters:
stream - -- stream for resolving language to ICodeProcessor
Method Detail

getCodeProcessor

public ICodeProcessor getCodeProcessor(String lang,
                                       IModel model)
retrieve a ICodeProcessor for the given language. The IBM Reflexive GUI Builder currently supports the following scripting languages:

Note: If the supplied model is null, a processor will still be generated but the IGuiModel implementation cannot be used within the context of construction or validation of GUIs.

Specified by:
getCodeProcessor in interface ICodeProcessorFactory
Parameters:
lang - -- language for which a AbstractCodeInterpreter is to be instantiated
model - -- model for which code interpreter is to be built (may be null)
Returns:
code processor
See Also:
"resources/actf.xml"