String[] names = JavaSourceParser.getArgNames(constructor);
for (int i = 0; i < types.length; i++) {
if (types[i].isPrimitive()) {
types[i] = ConfigUtil.getPrimitiveWrapperClass(types[i]);
}
AbstractProperty p = null;
if (types[i].isArray() && !MainHandler.getInstance().canHandle(types[i])) {
p = new TemplateArrayProperty(result, names[i], types[i].getComponentType());
} else {
p = new TemplateProperty(result, names[i], types[i], ConfigUtil.getDefaultValue(types[i]));
}
p.setDocumentation(JavaSourceParser.getArgDocs(constructor, i));
result.defineProperty(p);
}
return result;
}