org.msgpack.template.builder
Class ReflectionTemplateBuilder.ReflectionClassTemplate<T>

java.lang.Object
  extended by org.msgpack.template.AbstractTemplate<T>
      extended by org.msgpack.template.builder.ReflectionTemplateBuilder.ReflectionClassTemplate<T>
All Implemented Interfaces:
Template<T>
Enclosing class:
ReflectionTemplateBuilder

protected static class ReflectionTemplateBuilder.ReflectionClassTemplate<T>
extends AbstractTemplate<T>


Field Summary
protected  Class<T> targetClass
           
protected  ReflectionTemplateBuilder.ReflectionFieldTemplate[] templates
           
 
Constructor Summary
protected ReflectionTemplateBuilder.ReflectionClassTemplate(Class<T> targetClass, ReflectionTemplateBuilder.ReflectionFieldTemplate[] templates)
           
 
Method Summary
 T read(Unpacker unpacker, T to, boolean required)
           
 void write(Packer packer, T target, boolean required)
           
 
Methods inherited from class org.msgpack.template.AbstractTemplate
read, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetClass

protected Class<T> targetClass

templates

protected ReflectionTemplateBuilder.ReflectionFieldTemplate[] templates
Constructor Detail

ReflectionTemplateBuilder.ReflectionClassTemplate

protected ReflectionTemplateBuilder.ReflectionClassTemplate(Class<T> targetClass,
                                                            ReflectionTemplateBuilder.ReflectionFieldTemplate[] templates)
Method Detail

write

public void write(Packer packer,
                  T target,
                  boolean required)
           throws IOException
Throws:
IOException

read

public T read(Unpacker unpacker,
              T to,
              boolean required)
       throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.