net.sf.arise.gsf
Class BaseEngine

java.lang.Object
  |
  +--net.sf.arise.gsf.BaseEngine
All Implemented Interfaces:
Engine
Direct Known Subclasses:
BSFSupportedEngine, PijiEngine

public abstract class BaseEngine
extends java.lang.Object
implements Engine


Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
  BaseEngine(java.lang.String name, java.lang.String language)
           
  BaseEngine(java.lang.String name, java.lang.String language, Classpath classpath)
           
protected BaseEngine(java.lang.String name, java.lang.String language, Classpath classpath, BaseEngine parent, int depth)
           
 
Method Summary
 void addListener(EngineListener listener)
           
protected  java.lang.String childName()
           
protected  void fireEvalDone(Result result)
           
protected  void fireEvalFailed(java.lang.Throwable t)
           
protected  void fireEvalStarting(java.lang.Object expr)
           
 Classpath getClasspath()
          Current classpath
protected  int getDepth()
           
 java.lang.Object getIt()
           
 java.lang.String getLanguage()
          The language
 java.lang.String getName()
          The name
 java.lang.Throwable getOops()
           
 Engine getParent()
           
 void removeListener(EngineListener listener)
           
 void reset()
          Reset current classpath
protected  void setClasspath(Classpath classpath)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.arise.gsf.Engine
bind, eval, getBindings, getClassLoader, lookup, reset, reset, spawn, unbind
 

Field Detail

log

protected final org.apache.commons.logging.Log log
Constructor Detail

BaseEngine

public BaseEngine(java.lang.String name,
                  java.lang.String language)
           throws java.lang.Exception

BaseEngine

public BaseEngine(java.lang.String name,
                  java.lang.String language,
                  Classpath classpath)
           throws java.lang.Exception

BaseEngine

protected BaseEngine(java.lang.String name,
                     java.lang.String language,
                     Classpath classpath,
                     BaseEngine parent,
                     int depth)
              throws java.lang.Exception
Method Detail

getIt

public java.lang.Object getIt()
Specified by:
getIt in interface Engine

getOops

public java.lang.Throwable getOops()
Specified by:
getOops in interface Engine

addListener

public void addListener(EngineListener listener)
Specified by:
addListener in interface Engine

removeListener

public void removeListener(EngineListener listener)
Specified by:
removeListener in interface Engine

fireEvalStarting

protected void fireEvalStarting(java.lang.Object expr)

fireEvalDone

protected void fireEvalDone(Result result)

fireEvalFailed

protected void fireEvalFailed(java.lang.Throwable t)

getDepth

protected int getDepth()

getName

public java.lang.String getName()
Description copied from interface: Engine
The name

Specified by:
getName in interface Engine

getParent

public Engine getParent()
Specified by:
getParent in interface Engine

childName

protected java.lang.String childName()

getLanguage

public java.lang.String getLanguage()
Description copied from interface: Engine
The language

Specified by:
getLanguage in interface Engine

getClasspath

public Classpath getClasspath()
Description copied from interface: Engine
Current classpath

Specified by:
getClasspath in interface Engine

setClasspath

protected void setClasspath(Classpath classpath)

reset

public void reset()
           throws java.lang.Exception
Description copied from interface: Engine
Reset current classpath

Specified by:
reset in interface Engine
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


All code and documentation is

Copyright (c) : 2000-2003 Kjetil Valstadsve & Maja S. Bratseth