From db79a7dd27d44c3fbfa9db36c152f140735b6630 Mon Sep 17 00:00:00 2001 From: MaxKey Date: Fri, 10 Jul 2020 22:21:08 +0800 Subject: [PATCH] Create PrettyFactory.java --- .../java/org/maxkey/pretty/PrettyFactory.java | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 maxkey-core/src/main/java/org/maxkey/pretty/PrettyFactory.java diff --git a/maxkey-core/src/main/java/org/maxkey/pretty/PrettyFactory.java b/maxkey-core/src/main/java/org/maxkey/pretty/PrettyFactory.java new file mode 100644 index 000000000..8e45ee1dc --- /dev/null +++ b/maxkey-core/src/main/java/org/maxkey/pretty/PrettyFactory.java @@ -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; + } + +}