Logo Search packages:      
Sourcecode: velocity version File versions  Download package

org::apache::velocity::app::VelocityEngine Class Reference

Inheritance diagram for org::apache::velocity::app::VelocityEngine:

org::apache::velocity::runtime::RuntimeConstants

List of all members.


Detailed Description

This class provides a separate new-able instance of the Velocity template engine. The alternative model for use is using the Velocity class which employs the singleton model.

Please ensure that you call one of the init() variants. This is critical for proper behavior.

Coming soon : Velocity will call the parameter-less init() at the first use of this class if the init() wasn't explicitly called. While this will ensure that Velocity functions, it almost certainly won't function in the way you intend, so please make sure to call init().

Author:
Geir Magnusson Jr.
Version:
Id
VelocityEngine.java,v 1.6.4.1 2004/03/03 23:22:53 geirm Exp

Definition at line 69 of file VelocityEngine.java.


Public Member Functions

void addProperty (String key, Object value)
void clearProperty (String key)
void debug (Object message)
void error (Object message)
boolean evaluate (Context context, Writer writer, String logTag, Reader reader) throws ParseErrorException, MethodInvocationException, ResourceNotFoundException,IOException
boolean evaluate (Context context, Writer writer, String logTag, InputStream instream) throws ParseErrorException, MethodInvocationException, ResourceNotFoundException, IOException
boolean evaluate (Context context, Writer out, String logTag, String instring) throws ParseErrorException, MethodInvocationException, ResourceNotFoundException, IOException
Object getProperty (String key)
Template getTemplate (String name, String encoding) throws ResourceNotFoundException, ParseErrorException, Exception
Template getTemplate (String name) throws ResourceNotFoundException, ParseErrorException, Exception
void info (Object message)
void init (Properties p) throws Exception
void init (String propsFilename) throws Exception
void init () throws Exception
boolean invokeVelocimacro (String vmName, String logTag, String params[], Context context, Writer writer) throws Exception
boolean mergeTemplate (String templateName, String encoding, Context context, Writer writer) throws ResourceNotFoundException, ParseErrorException, MethodInvocationException, Exception
boolean mergeTemplate (String templateName, Context context, Writer writer) throws ResourceNotFoundException, ParseErrorException, MethodInvocationException, Exception
void setApplicationAttribute (Object key, Object value)
void setConfiguration (Configuration configuration)
void setExtendedProperties (ExtendedProperties configuration)
void setProperty (String key, Object value)
boolean templateExists (String templateName)
void warn (Object message)

Static Public Attributes

static final String COUNTER_INITIAL_VALUE
static final String COUNTER_NAME
static final String DEBUG_PREFIX = " [debug] "
static final String DEFAULT_RUNTIME_DIRECTIVES
static final String DEFAULT_RUNTIME_PROPERTIES
static final String ENCODING_DEFAULT = "ISO-8859-1"
static final String ERROR_PREFIX = " [error] "
static String ERRORMSG_END
static String ERRORMSG_START
static final String FILE_RESOURCE_LOADER_CACHE
static final String FILE_RESOURCE_LOADER_PATH
static final String INFO_PREFIX = " [info] "
static final String INPUT_ENCODING = "input.encoding"
static String INTERPOLATE_STRINGLITERALS
static final String LOGSYSTEM_LOG4J_EMAIL_BUFFER_SIZE
static final String LOGSYSTEM_LOG4J_EMAIL_FROM
static final String LOGSYSTEM_LOG4J_EMAIL_SERVER
static final String LOGSYSTEM_LOG4J_EMAIL_SUBJECT
static final String LOGSYSTEM_LOG4J_EMAIL_TO
static final String LOGSYSTEM_LOG4J_FILE_BACKUPS
static final String LOGSYSTEM_LOG4J_FILE_SIZE
static final String LOGSYSTEM_LOG4J_PATTERN
static final String LOGSYSTEM_LOG4J_REMOTE_HOST
static final String LOGSYSTEM_LOG4J_REMOTE_PORT
static final String LOGSYSTEM_LOG4J_SYSLOGD_FACILITY
static final String LOGSYSTEM_LOG4J_SYSLOGD_HOST
static final int NUMBER_OF_PARSERS = 20
static final String OUTPUT_ENCODING = "output.encoding"
static String PARSE_DIRECTIVE_MAXDEPTH = "directive.parse.max.depth"
static final String PARSER_POOL_SIZE = "parser.pool.size"
static final String RESOURCE_LOADER = "resource.loader"
static String RESOURCE_MANAGER_CACHE_CLASS
static String RESOURCE_MANAGER_CLASS = "resource.manager.class"
static final String RESOURCE_MANAGER_LOGWHENFOUND
static final String RUNTIME_LOG
static final String RUNTIME_LOG_ERROR_STACKTRACE
static final String RUNTIME_LOG_INFO_STACKTRACE
static final String RUNTIME_LOG_LOGSYSTEM
static final String RUNTIME_LOG_LOGSYSTEM_CLASS
static final String RUNTIME_LOG_REFERENCE_LOG_INVALID
static final String RUNTIME_LOG_WARN_STACKTRACE
static final String UBERSPECT_CLASSNAME = "runtime.introspector.uberspect"
static final String UNKNOWN_PREFIX = " [unknown] "
static final String VM_CONTEXT_LOCALSCOPE
static final String VM_LIBRARY = "velocimacro.library"
static final String VM_LIBRARY_AUTORELOAD
static final String VM_MESSAGES_ON = "velocimacro.messages.on"
static final String VM_PERM_ALLOW_INLINE
static final String VM_PERM_ALLOW_INLINE_REPLACE_GLOBAL
static final String VM_PERM_INLINE_LOCAL
static final String WARN_PREFIX = " [warn] "

Private Attributes

RuntimeInstance ri = new RuntimeInstance()

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index