Package freemarker.ext.beans

Provides various model implementations for FM-Classic: reflection models and resource bundle models.

See:
          Description

Class Summary
ArrayModel Deprecated. this class is deprecated in favour of the classes in the freemarker.ext.beans2 package
BeansWrapper Deprecated. this class is deprecated in favour of the Wrapper and Unwrapper classes
CollectionModel Deprecated. this class is deprecated in favour of the classes in the freemarker.ext.beans2 package
EnumerationModel Deprecated. this class is deprecated in favour of the classes in the freemarker.ext.beans2 package
IteratorModel Deprecated. this class is deprecated in favour of the classes in the freemarker.ext.beans2 package
ListModel Deprecated. this class is deprecated in favour of the classes in the freemarker.ext.beans2 package
MapModel Deprecated. this class is deprecated in favour of the classes in the freemarker.ext.beans2 package
MethodModel Deprecated. this class is deprecated in favour of the classes in the freemarker.ext.beans2 package
Models Deprecated. this class is deprecated in favour of the classes in the freemarker.ext.beans2 package
NumberModel Deprecated. this class is deprecated in favour of the classes in the freemarker.ext.beans2 package
ObjectModel Deprecated. this class is deprecated in favour of the classes in the freemarker.ext.beans2 package
ObjectModelBase Deprecated. this class is deprecated in favour of the classes in the freemarker.ext.beans2 package
ResourceBundleModel Deprecated. this class is deprecated in favour of the classes in the freemarker.ext.beans2 package
RootMapModel Deprecated. this class is deprecated in favour of the classes in the freemarker.ext.beans2 package
ScalarModel Deprecated. this class is deprecated in favour of the classes in the freemarker.ext.beans2 package
SimpleNumberModel Deprecated. this class is deprecated in favour of the classes in the freemarker.ext.beans2 package
StaticModel Deprecated. this class is deprecated in favour of the classes in the freemarker.ext.beans2 package
StaticModels Deprecated. this class is deprecated in favour of the classes in the freemarker.ext.beans2 package
 

Package freemarker.ext.beans Description

Provides various model implementations for FM-Classic: reflection models and resource bundle models.

Most of the issues dealing with reflection are handled by the BeansWrapper.wrap(Object)and StaticModel.create(Class) methods. In normal cases, these are the only methods you should use to turn an arbitrary Java object into a FM-Classic TemplateModel. Additionally, you can manually create instance of any wrapper class using it's getInstance method (which canonicalizes instances, meaning you always get the same wrapper instance for an object), or using the new operator (which, by definition, always creates a new wrapper).

There are also two classes that are not part of the automatic wrapping implemented by the BeansWrapper class, therefore you must always create their instances manually: the RootMapModel and ResourceBundleModel class.

Note: deprecated
The classes in this package are no longer recommended. Use the freemarker.ext.beans2 package in preference to this one.