All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.litongjava.tio.utils.json.FastJson2Factory Maven / Gradle / Ivy

There is a newer version: 3.7.3.v202400213-RELEASE
Show newest version
package com.litongjava.tio.utils.json;

/**
 * IJsonFactory 的 fastjson 实现.
 */
public class FastJson2Factory implements IJsonFactory {

  private static final FastJson2Factory me = new FastJson2Factory();

  public FastJson2Factory() {
    // 尽早触发 fastjson 的配置代码
    new FastJson2();
  }

  public static FastJson2Factory me() {
    return me;
  }

  public Json getJson() {
    return new FastJson2();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy