org.tp23.jasper.runtime
Class PropertiesObjectConfig
java.lang.Object
|
+--org.tp23.jasper.runtime.PropertiesObjectConfig
- All Implemented Interfaces:
- ObjectConfig
- public class PropertiesObjectConfig
- extends java.lang.Object
- implements ObjectConfig
This is a simple implementation of a configuration object that loads from a properties file.
- Author:
- Paul Hinds
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesObjectConfig
public PropertiesObjectConfig(ObjectContainerContext containerContext,
java.io.File propertiesFile)
throws java.io.FileNotFoundException,
java.io.IOException
- Constructor for the PropertiesObjectConfig object
- Parameters:
containerContext
- Description of Parameter
getInitParameter
public java.lang.String getInitParameter(java.lang.String name)
- Description copied from interface:
ObjectConfig
- Gets the named initParameter. These are set in a .propeties file that
is stored next to the jsp file with the same name (but a different extension)
- Specified by:
getInitParameter
in interface ObjectConfig
- Following copied from interface:
org.tp23.jsp.ObjectConfig
- Parameters:
name
- Parameter name- Returns:
- The initParameter value
getInitParameterNames
public java.util.Enumeration getInitParameterNames()
- Description copied from interface:
ObjectConfig
- Gets the init Parameter Names
- Specified by:
getInitParameterNames
in interface ObjectConfig
- Following copied from interface:
org.tp23.jsp.ObjectConfig
- Returns:
- The init Parameter Names as an Enumeration
getObjectContainerContext
public ObjectContainerContext getObjectContainerContext()
- Description copied from interface:
ObjectConfig
- Gets the ObjectContainerContext of the server running this JSP
- Specified by:
getObjectContainerContext
in interface ObjectConfig
- Following copied from interface:
org.tp23.jsp.ObjectConfig
- Returns:
- The ObjectContainerContext
getJspName
public java.lang.String getJspName()
- Description copied from interface:
ObjectConfig
- Gets the jsp Name
- Specified by:
getJspName
in interface ObjectConfig
- Following copied from interface:
org.tp23.jsp.ObjectConfig
- Returns:
- The jspName value