Browse Source

Create PrettyFactory.java

MaxKey 5 years ago
parent
commit
db79a7dd27
1 changed files with 27 additions and 0 deletions
  1. 27 0
      maxkey-core/src/main/java/org/maxkey/pretty/PrettyFactory.java

+ 27 - 0
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;
+    }
+    
+}