For example, with a {@link BeansWrapper} both the items of {@link Map} and the JavaBean properties (the getters)of an object are accessible in template uniformly with the {@code myObject.foo} syntax, where "foo" is the map key orthe property name. This is because both kind of object is wrapped by {@link BeansWrapper} into a{@link TemplateHashModel} implementation that will call {@link Map#get(Object)} or the getter method, transparentlyto the template language. @see Configuration#setObjectWrapper(ObjectWrapper)
|
|