|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MagnoliaModelFactory
A specialization of Freemarker's ModelFactory, which knows which class its handling. Mostly just used so we can simply register other factories in Magnolia's configuration without too many hacks nor billions of subnodes.
Method Summary | |
---|---|
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. |
Method Detail |
---|
Class factoryFor()
freemarker.template.TemplateModel create(Object object, freemarker.template.ObjectWrapper wrapper)
create
in interface freemarker.ext.util.ModelFactory
AdapterTemplateModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |