def register()

in thrift/src/main/scala/com/twitter/finatra/thrift/internal/routing/Registrar.scala [11:39]


  def register(clazz: Class[_], method: ThriftMethod, filters: Filter.TypeAgnostic): Unit = {
    registry.put(
      Seq(method.name, "service_name"),
      method.serviceName
    )
    registry.put(Seq(method.name, "class"), clazz.getName)
    registry.put(
      Seq(method.name, "args_codec"),
      method.argsCodec.getClass.getName
    )
    registry.put(
      Seq(method.name, "response_codec"),
      method.responseCodec.getClass.getName
    )

    if (method.annotations.nonEmpty) {
      registry.put(
        Seq(method.name, "annotations"),
        method.annotations.map { case (k, v) => s"$k = $v" }.mkString(",")
      )
    }

    if (filters ne Filter.TypeAgnostic.Identity) {
      registry.put(
        Seq(method.name, "filters"),
        filters.toString
      )
    }
  }