Class BeanModel

All Implemented Interfaces:
WrapperTemplateModel, AdapterTemplateModel, TemplateHashModel, TemplateHashModelEx, TemplateModel, TemplateModelWithAPISupport
Direct Known Subclasses:
ArrayModel, BooleanModel, DateModel, EnumerationModel, IteratorModel, NumberModel, ResourceBundleModel, StringModel

A class that will wrap an arbitrary object into TemplateHashModel interface allowing calls to arbitrary property getters and invocation of accessible methods on the object from a template using the to access properties and, arg2) to invoke methods on it. You can also use the[index] syntax to access indexed properties. It uses Beans Introspector to dynamically discover the properties and methods.