org.msgpack.template.builder
Class ReflectionTemplateBuilder

java.lang.Object
  extended by org.msgpack.template.builder.AbstractTemplateBuilder
      extended by org.msgpack.template.builder.ReflectionTemplateBuilder
All Implemented Interfaces:
TemplateBuilder
Direct Known Subclasses:
ReflectionBeansTemplateBuilder

public class ReflectionTemplateBuilder
extends AbstractTemplateBuilder


Nested Class Summary
protected static class ReflectionTemplateBuilder.ReflectionClassTemplate<T>
           
protected static class ReflectionTemplateBuilder.ReflectionFieldTemplate
           
 
Field Summary
 
Fields inherited from class org.msgpack.template.builder.AbstractTemplateBuilder
registry
 
Constructor Summary
ReflectionTemplateBuilder(TemplateRegistry registry)
           
 
Method Summary
<T> Template<T>
buildTemplate(Class<T> targetClass, FieldEntry[] entries)
           
 boolean matchType(Type targetType, boolean hasAnnotation)
           
protected  ReflectionTemplateBuilder.ReflectionFieldTemplate[] toTemplates(FieldEntry[] entries)
           
 
Methods inherited from class org.msgpack.template.builder.AbstractTemplateBuilder
buildTemplate, buildTemplate, checkClassValidation, getFieldOption, isAnnotated, isAnnotated, loadTemplate, matchAtArrayTemplateBuilder, matchAtClassTemplateBuilder, matchAtOrdinalEnumTemplateBuilder, toFieldEntries, writeTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionTemplateBuilder

public ReflectionTemplateBuilder(TemplateRegistry registry)
Method Detail

matchType

public boolean matchType(Type targetType,
                         boolean hasAnnotation)

buildTemplate

public <T> Template<T> buildTemplate(Class<T> targetClass,
                                     FieldEntry[] entries)
Specified by:
buildTemplate in class AbstractTemplateBuilder

toTemplates

protected ReflectionTemplateBuilder.ReflectionFieldTemplate[] toTemplates(FieldEntry[] entries)


Copyright © 2011. All Rights Reserved.