|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.engine.PropertyConstants
public final class PropertyConstants
Constants to be supplied to FMEngine
to configure the engine's
runtime behaviour. These are supplied using the setProperty()
method or the init(Properties)
methods of the FMEngine
class.
Many of the property values are supplied as class names to be loaded using reflection.
Class names may be given as:
package.name.classname
Static fields may be addressed within a class as:
package.name.classname.field
or:
package.name.classname#field
When reflection is performed, it is handled the following way:
TEMPLATE_ENGINE_INSTANCE_METHODS
and
TEMPLATE_ENGINE_INSTANCE_FIELDS
properties described below.
Field Summary | |
---|---|
static java.lang.String |
TEMPLATE_CACHE_STRATEGY
The class name of the CachingStrategyFactory for caching items. |
static java.lang.String |
TEMPLATE_CACHE_SUFFIX
The filename suffix for items to be stored in the cache. |
static java.lang.String |
TEMPLATE_CACHE_UPDATE_MAXAGE
Determines when items in the cache should be expired, as an integer value. |
static java.lang.String |
TEMPLATE_CACHE_UPDATE_PERIOD
Determines how often templates in the cache should be checked for changes, as an integer number of seconds. |
static java.lang.String |
TEMPLATE_ENCODING
The character encoding to be used when reading templates from the file system. |
static java.lang.String |
TEMPLATE_ENGINE_INSTANCE_FIELDS
A list of field names for looking up a singleton field of a class. |
static java.lang.String |
TEMPLATE_ENGINE_INSTANCE_METHODS
A list of method names for looking up a singleton method of a class. |
static java.lang.String |
TEMPLATE_PATH
The fully-qualified path to a directory containing template files. |
static java.lang.String |
TEMPLATE_RETRIEVER
The class name of the CacheRetrieverFactory for retrieving
items to be cached. |
static java.lang.String |
TEMPLATE_RUNTIME_ESCAPE
The class name or names of the TemplateTransformModel or
TemplateTransformModel2 objects used whenever a variable
is written to the writer. |
static java.lang.String |
TEMPLATE_RUNTIME_GLOBAL_FILTER
The class name or names of the TemplateTransformModel or
TemplateTransformModel2 that filters all output from the
template. |
static java.lang.String |
TEMPLATE_RUNTIME_HANDLER
The class name of the TemplateRuntimeHandler used whenever
an error is reported by the runtime engine. |
static java.lang.String |
TEMPLATE_TYPE_DEFAULT
The default template type. |
Method Summary | |
---|---|
static java.util.Properties |
getDefaultProperties()
Retrieve a default set of properties sufficient to bootstrap the FMEngine object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TEMPLATE_PATH
public static final java.lang.String TEMPLATE_ENCODING
public static final java.lang.String TEMPLATE_TYPE_DEFAULT
public static final java.lang.String TEMPLATE_RETRIEVER
CacheRetrieverFactory
for retrieving
items to be cached.
CacheRetrieverFactory
,
Constant Field Valuespublic static final java.lang.String TEMPLATE_CACHE_STRATEGY
CachingStrategyFactory
for caching items.
CachingStrategyFactory
,
Constant Field Valuespublic static final java.lang.String TEMPLATE_CACHE_UPDATE_MAXAGE
public static final java.lang.String TEMPLATE_CACHE_UPDATE_PERIOD
public static final java.lang.String TEMPLATE_CACHE_SUFFIX
public static final java.lang.String TEMPLATE_RUNTIME_ESCAPE
TemplateTransformModel
or
TemplateTransformModel2
objects used whenever a variable
is written to the writer. If multiple classes are specified, the names
are separated by semicolons, colons, or spaces.
TemplateTransformModel
,
TemplateTransformModel2
,
Constant Field Valuespublic static final java.lang.String TEMPLATE_RUNTIME_GLOBAL_FILTER
TemplateTransformModel
or
TemplateTransformModel2
that filters all output from the
template. If multiple classes are specified, the names are separated by
semicolons, colons, or spaces.
TemplateTransformModel
,
TemplateTransformModel2
,
Constant Field Valuespublic static final java.lang.String TEMPLATE_RUNTIME_HANDLER
TemplateRuntimeHandler
used whenever
an error is reported by the runtime engine.
TemplateRuntimeHandler
,
Constant Field Valuespublic static final java.lang.String TEMPLATE_ENGINE_INSTANCE_METHODS
public static final java.lang.String TEMPLATE_ENGINE_INSTANCE_FIELDS
Method Detail |
---|
public static java.util.Properties getDefaultProperties()
FMEngine
object. This is the default set used when no other
properties are supplied.
FMEngine
object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |