org.msgpack.template.builder
Class AbstractTemplateBuilder
java.lang.Object
org.msgpack.template.builder.AbstractTemplateBuilder
- All Implemented Interfaces:
- TemplateBuilder
- Direct Known Subclasses:
- ArrayTemplateBuilder, JavassistTemplateBuilder, OrdinalEnumTemplateBuilder, ReflectionTemplateBuilder
public abstract class AbstractTemplateBuilder
- extends Object
- implements TemplateBuilder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
registry
protected TemplateRegistry registry
AbstractTemplateBuilder
protected AbstractTemplateBuilder(TemplateRegistry registry)
buildTemplate
public <T> Template<T> buildTemplate(Type targetType)
throws TemplateBuildException
- Specified by:
buildTemplate
in interface TemplateBuilder
- Throws:
TemplateBuildException
buildTemplate
public <T> Template<T> buildTemplate(Class<T> targetClass,
FieldList fieldList)
throws TemplateBuildException
- Specified by:
buildTemplate
in interface TemplateBuilder
- Throws:
TemplateBuildException
buildTemplate
protected abstract <T> Template<T> buildTemplate(Class<T> targetClass,
FieldEntry[] entries)
checkClassValidation
protected void checkClassValidation(Class<?> targetClass)
getFieldOption
protected FieldOption getFieldOption(Class<?> targetClass)
toFieldEntries
protected FieldEntry[] toFieldEntries(Class<?> targetClass,
FieldOption from)
writeTemplate
public void writeTemplate(Type targetType,
String directoryName)
- Specified by:
writeTemplate
in interface TemplateBuilder
loadTemplate
public <T> Template<T> loadTemplate(Type targetType)
- Specified by:
loadTemplate
in interface TemplateBuilder
isAnnotated
public static boolean isAnnotated(Class<?> targetClass,
Class<? extends Annotation> with)
isAnnotated
public static boolean isAnnotated(AccessibleObject accessibleObject,
Class<? extends Annotation> with)
matchAtClassTemplateBuilder
public static boolean matchAtClassTemplateBuilder(Class<?> targetClass,
boolean hasAnnotation)
matchAtArrayTemplateBuilder
public static boolean matchAtArrayTemplateBuilder(Class<?> targetClass,
boolean hasAnnotation)
matchAtOrdinalEnumTemplateBuilder
public static boolean matchAtOrdinalEnumTemplateBuilder(Class<?> targetClass,
boolean hasAnnotation)
Copyright © 2011. All Rights Reserved.