org.helma.tools
Class HelmaConfiguration

java.lang.Object
  extended by org.helma.tools.HelmaConfiguration

public class HelmaConfiguration
extends java.lang.Object


Constructor Summary
HelmaConfiguration()
           
HelmaConfiguration(java.lang.String helmaHome)
           
HelmaConfiguration(java.lang.String helmaHome, java.lang.String helmaModulePath)
           
 
Method Summary
 RhinoEngine createEngine()
          Create a new RhinoEngine with the settings defined by this configuration.
 java.io.File getHelmaHome()
          Return the helma install directory
 java.util.List<Repository> getRepositories()
          Get a list of repositoris from the given helmaHome and helmaPath settings using the helma.home and helma.path system properties as fallback.
 void setHostClasses(java.lang.Class[] classes)
          Set the host classes to be added to the Rhino engine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelmaConfiguration

public HelmaConfiguration()
                   throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

HelmaConfiguration

public HelmaConfiguration(java.lang.String helmaHome)
                   throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

HelmaConfiguration

public HelmaConfiguration(java.lang.String helmaHome,
                          java.lang.String helmaModulePath)
                   throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

getHelmaHome

public java.io.File getHelmaHome()
Return the helma install directory

Returns:
the helma home directory

getRepositories

public java.util.List<Repository> getRepositories()
Get a list of repositoris from the given helmaHome and helmaPath settings using the helma.home and helma.path system properties as fallback.

Returns:
a list of repositories matching the arguments and/or system properties

setHostClasses

public void setHostClasses(java.lang.Class[] classes)
Set the host classes to be added to the Rhino engine.

Parameters:
classes - a list of Rhino host classes

createEngine

public RhinoEngine createEngine()
Create a new RhinoEngine with the settings defined by this configuration.

Returns:
a new RhinoEngine