Create PrettyFactory.java

This commit is contained in:
MaxKey
2020-07-10 22:21:08 +08:00
parent 1b5f1057c1
commit db79a7dd27

View File

@@ -0,0 +1,27 @@
package org.maxkey.pretty;
import org.maxkey.pretty.impl.JsonPretty;
import org.maxkey.pretty.impl.SqlPretty;
import org.maxkey.pretty.impl.XmlPretty;
public class PrettyFactory {
static final Pretty jsonPretty = new JsonPretty();
static final Pretty sqlPretty = new SqlPretty();
static final Pretty xmlPretty = new XmlPretty();
public static Pretty getJsonPretty() {
return jsonPretty;
}
public static Pretty getXmlPretty() {
return xmlPretty;
}
public static Pretty getSqlPretty() {
return sqlPretty;
}
}