public class FreeMarkerBeanWriter extends Object implements BeanWriter
Modifier and Type | Field and Description |
---|---|
static String |
MODEL_CTX_KEY |
Constructor and Description |
---|
FreeMarkerBeanWriter() |
Modifier and Type | Method and Description |
---|---|
void |
intialize() |
void |
write(Object bean,
Writer writer,
Model model)
Write the specified bean to the supplied writer.
|
public static final String MODEL_CTX_KEY
@Initialize public void intialize()
public void write(Object bean, Writer writer, Model model) throws BeanRegistrationException, IOException
BeanWriter
write
in interface BeanWriter
bean
- The bean instance.writer
- The target writer.model
- The Model
instance that "owns" the bean.BeanRegistrationException
- Unknown bean instance.IOException
- Error writing bean to writer
.Copyright © 2020. All rights reserved.