oneway = methodMetadata.getOneway();
// get the thrift codecs for the parameters
ParameterHandler[] parameters = new ParameterHandler[methodMetadata.getParameters().size()];
for (ThriftFieldMetadata fieldMetadata : methodMetadata.getParameters()) {
ThriftParameterInjection parameter = (ThriftParameterInjection) fieldMetadata.getInjections().get(0);
ParameterHandler handler = new ParameterHandler(
fieldMetadata.getId(),
fieldMetadata.getName(),
(ThriftCodec<Object>) codecManager.getCodec(fieldMetadata.getThriftType()));
parameters[parameter.getParameterIndex()] = handler;
}
parameterCodecs = ImmutableList.copyOf(parameters);
// get the thrift codecs for the exceptions
ImmutableMap.Builder<Short, ThriftCodec<Object>> exceptions = ImmutableMap.builder();