org.msgpack.template.builder
Class ReflectionTemplateBuilder
java.lang.Object
org.msgpack.template.builder.AbstractTemplateBuilder
org.msgpack.template.builder.ReflectionTemplateBuilder
- All Implemented Interfaces:
- TemplateBuilder
- Direct Known Subclasses:
- ReflectionBeansTemplateBuilder
public class ReflectionTemplateBuilder
- extends AbstractTemplateBuilder
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 |
ReflectionTemplateBuilder
public ReflectionTemplateBuilder(TemplateRegistry registry)
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.