org.milyn.javabean.dynamic.serialize
Interface BeanWriter

All Known Implementing Classes:
FreeMarkerBeanWriter

public interface BeanWriter

Bean Serializer.

Author:
tom.fennelly@gmail.com

Method Summary
 void write(Object bean, Writer writer, Model model)
          Write the specified bean to the supplied writer.
 

Method Detail

write

void write(Object bean,
           Writer writer,
           Model model)
           throws BeanRegistrationException,
                  IOException
Write the specified bean to the supplied writer.

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.