ModelFactory (FreeMarker 2.3.35 API)
Description: declaration: package: freemarker.ext.util, interface: ModelFactory

Package freemarker.ext.util

# Interface ModelFactory

public interface ModelFactory
Interface used to create various wrapper models in the `ModelCache`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `TemplateModel`
  `create​(Object object, ObjectWrapper wrapper)`
  Create a wrapping model for the specified object that belongs to the specified wrapper.

- ## Method Details

  - ### create

    TemplateModel create​(Object object, ObjectWrapper wrapper)
    Create a wrapping model for the specified object that belongs to the specified wrapper.