public static final class RenderableDefinitionModel.Factory extends Object implements MagnoliaModelFactory
Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
freemarker.template.TemplateModel |
create(Object object,
freemarker.template.ObjectWrapper wrapper)
If possible, our models should instantiate models which implement AdapterTemplateModel,
so they can be unwrapped easily.
|
Class |
factoryFor()
Returns the Class this ModelFactory is able to create Model instances for.
|
public Class factoryFor()
MagnoliaModelFactory
factoryFor
in interface MagnoliaModelFactory
public freemarker.template.TemplateModel create(Object object, freemarker.template.ObjectWrapper wrapper)
MagnoliaModelFactory
create
in interface freemarker.ext.util.ModelFactory
create
in interface MagnoliaModelFactory
AdapterTemplateModel
Copyright © 2003–2019 Magnolia International Ltd.. All rights reserved.