String qn = "java://" + formatType(genParams[i]);
DefDescriptor<TypeDef> typeDefDesc = DefDescriptorImpl.getInstance(qn, TypeDef.class);
// FIXME = "we need an md5";
String paramName = ((Key) annotation).value();
ValueDef valueDef = new JavaValueDef(paramName, typeDefDesc, new Location(
controllerClass.getName() + "." + name, 0));
params.add(valueDef);
if (((Key)annotation).loggable()) {
loggableParams.add(paramName);
}
}
}
if (!found) {
throw new InvalidDefinitionException("@Key annotation is required on all action parameters",
new Location(controllerClass.getName() + "." + name, 0));
}
}
actionBuilder.setParams(params);
actionBuilder.setLoggableParams(loggableParams);