Deprecated API

Contents

Deprecated Interfaces

WrapperTemplateModel

Deprecated Classes

CaptureOutput
Use block-assignments instead, as <assign x>...</assign>.
FreemarkerXmlTask
FMPP is a more complete solution.
NodeListModel
Use NodeModel instead.
NodeListModel
Use NodeModel instead.
SimpleList
Use SimpleSequence instead.

Deprecated Methods

freemarker.ext.beans.BeansWrapper.getInstance(Object,ModelFactory)
override getModelFactory(Class) instead.
freemarker.core.Configurable.getSetting(String)
This method was always defective, and certainly it always will be.
freemarker.core.Configurable.getSettings()
This method was always defective, and certainly it always will be.
freemarker.template.Configuration.getDefaultConfiguration()
The usage of the static singleton (the "default") Configuration instance can easily cause erroneous, unpredictable behavior.
freemarker.template.Configuration.setDefaultConfiguration(Configuration)
Using the "default" Configuration instance can easily lead to erroneous, unpredictable behaviour.
freemarker.core.SimpleCharStream.getColumn()
freemarker.core.SimpleCharStream.getLine()

Deprecated Constructors

freemarker.cache.ClassTemplateLoader.ClassTemplateLoader()
confusing constructor, and seldom useful; use ClassTemplateLoader(Class,String) instead.
freemarker.cache.ClassTemplateLoader.ClassTemplateLoader(Class)
it is confusing that the base path is ""; use ClassTemplateLoader(Class,String) instead.
freemarker.ext.servlet.ServletContextHashModel.ServletContextHashModel(ServletContext,ObjectWrapper)
freemarker.template.Template.Template(String,Reader)
This constructor uses the "default" Configuration instance, which can easily lead to erroneous, unpredictable behaviour.