Create PrettyFactory.java
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user