throw new TemplateBuildException("Cannot build template of primitive type: " + targetClass.getName());
}
}
protected FieldOption getFieldOption(Class<?> targetClass) {
Message m = targetClass.getAnnotation(Message.class);
if (m == null) {
return FieldOption.DEFAULT;
}
MessagePackMessage mpm = targetClass.getAnnotation(MessagePackMessage.class);
if (mpm == null) {
return FieldOption.DEFAULT;
}
// TODO #MN
return m.value();
}