org.milyn.javabean.dynamic.serialize.freemarker
Class FreeMarkerBeanWriter

java.lang.Object
  extended by org.milyn.javabean.dynamic.serialize.freemarker.FreeMarkerBeanWriter
All Implemented Interfaces:
BeanWriter

public class FreeMarkerBeanWriter
extends Object
implements BeanWriter

FreeMarker bean writer.

Author:
tom.fennelly@gmail.com

Field Summary
static String MODEL_CTX_KEY
           
 
Constructor Summary
FreeMarkerBeanWriter()
           
 
Method Summary
 void intialize()
           
 void write(Object bean, Writer writer, Model model)
          Write the specified bean to the supplied writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODEL_CTX_KEY

public static final String MODEL_CTX_KEY
See Also:
Constant Field Values
Constructor Detail

FreeMarkerBeanWriter

public FreeMarkerBeanWriter()
Method Detail

intialize

@Initialize
public void intialize()

write

public void write(Object bean,
                  Writer writer,
                  Model model)
           throws BeanRegistrationException,
                  IOException
Description copied from interface: BeanWriter
Write the specified bean to the supplied writer.

Specified by:
write in interface BeanWriter
Parameters:
bean - The bean instance.
writer - The target writer.
model - The Model instance that "owns" the bean.
Throws:
BeanRegistrationException - Unknown bean instance.
IOException - Error writing bean to writer.


Copyright © 2018. All rights reserved.