org.apache.cocoon.interpreter.ecmascript
Class EcmaScriptModule

java.lang.Object
  |
  +--org.apache.cocoon.interpreter.ecmascript.EcmaScriptModule

public class EcmaScriptModule
extends java.lang.Object
implements Module

Version:
$Revision: 1.4 $ $Date: 1999/10/20 20:17:21 $
Author:
Ricardo Rocha

Field Summary
private  java.util.Vector evaluatorPool
           
private static java.lang.String[] extensions
           
private  FESI.jslib.JSGlobalObject globalEvaluator
           
private static java.lang.String INIT_SCRIPT
           
private static java.lang.String initScript
           
(package private)  long lastModified
           
private  java.io.File scriptFile
           
private  java.lang.String scriptName
           
private  java.lang.String scriptText
           
private static java.net.URL url
           
 
Constructor Summary
EcmaScriptModule(java.lang.String theModule)
           
 
Method Summary
 Instance createInstance(org.w3c.dom.Document document, java.util.Dictionary parameters)
           
private static java.lang.String getFileContents(java.io.InputStream inputStream)
           
private static java.lang.String getFileContents(java.lang.String fileName)
           
private  void loadScript()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

extensions

private static java.lang.String[] extensions

initScript

private static java.lang.String initScript

url

private static java.net.URL url

INIT_SCRIPT

private static final java.lang.String INIT_SCRIPT

lastModified

long lastModified

scriptFile

private java.io.File scriptFile

scriptName

private java.lang.String scriptName

scriptText

private java.lang.String scriptText

evaluatorPool

private java.util.Vector evaluatorPool

globalEvaluator

private FESI.jslib.JSGlobalObject globalEvaluator
Constructor Detail

EcmaScriptModule

public EcmaScriptModule(java.lang.String theModule)
                 throws LanguageException
Method Detail

createInstance

public Instance createInstance(org.w3c.dom.Document document,
                               java.util.Dictionary parameters)
                        throws LanguageException
Specified by:
createInstance in interface Module

loadScript

private void loadScript()
                 throws LanguageException

getFileContents

private static java.lang.String getFileContents(java.lang.String fileName)
                                         throws java.io.IOException

getFileContents

private static java.lang.String getFileContents(java.io.InputStream inputStream)
                                         throws java.io.IOException


Copyright 1999 Java Apache Project. All Rights Reserved.