Class JsonCompatibilityUtil

java.lang.Object
org.apache.dubbo.common.utils.JsonCompatibilityUtil

public class JsonCompatibilityUtil extends Object
  • Constructor Details

    • JsonCompatibilityUtil

      public JsonCompatibilityUtil()
  • Method Details

    • checkClassCompatibility

      public static boolean checkClassCompatibility(Class<?> clazz)
      Determine whether a Class can be serialized by JSON.
      Parameters:
      clazz - Incoming Class.
      Returns:
      If a Class can be serialized by JSON, return true; else return false.
    • checkMethodCompatibility

      public static boolean checkMethodCompatibility(Method method)
      Determine whether a Method can be serialized by JSON.
      Parameters:
      method - Incoming Method.
      Returns:
      If a Method can be serialized by JSON, return true; else return false.
    • getUnsupportedMethods

      public static List<String> getUnsupportedMethods(Class<?> clazz)
      Get unsupported methods.
      Parameters:
      clazz -
      Returns:
      If there are unsupported methods, return them by List; else return null.