Tea Java Runtime API
Version 3.2.5

com.pdmfc.tea.modules
Class SModule

java.lang.Object
  extended by com.pdmfc.tea.modules.SModule
Direct Known Subclasses:
SModuleHtml, SModuleIO, SModuleLang, SModuleList, SModuleMath, SModuleReflect, SModuleRegexp, SModuleString, SModuleTdbc, SModuleTos, SModuleXml

public class SModule
extends java.lang.Object

Provides basic functionality common to most implementations of modules.


Constructor Summary
SModule()
           
 
Method Summary
 void end()
          Signals that the package will no longer be used.
 void init(STeaRuntime context)
          Populates the context with commands and variables.
 void start()
          Signals that the package will be used shortly after.
 void stop()
          Signals that the package will not be used until a call to the start() method is made again.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SModule

public SModule()
Method Detail

init

public void init(STeaRuntime context)
          throws STeaException
Populates the context with commands and variables. If this method is redefined in a derived class then the implementation in the derived class is always expected to call this implementation.

Parameters:
context - Reference to the STeaRuntime object to be populated.
Throws:
STeaException

end

public void end()
Signals that the package will no longer be used. That means that the commands that may have been created inside the SContext passed to the init() method will not be used again. Resources allocated to the commands may be freed. This implementation does nothing.


start

public void start()
Signals that the package will be used shortly after. This implementaion does nothing.


stop

public void stop()
Signals that the package will not be used until a call to the start() method is made again. This implementation does nothing.


Tea Java Runtime API
Version 3.2.5

© 2009 PDM&FC, All Rights Reserved.