@@ -1891,30 +1891,7 @@ final class JacksonFactory {
1891
1891
* json framework
1892
1892
*/
1893
1893
public static JacksonEngine createPrettyPrintJsonEngine (JsonSettings settings ) {
1894
- }
1895
- }
1896
- ```
1897
-
1898
- ### ` StaticJsonEngineFactory `
1899
-
1900
- The full name of this class is ` ru.olegcherednik.json.impl.StaticJsonEngineFactory ` . This is an implementation of
1901
- the ` JsonEngineFactory ` interface. ` json-api ` does not scan the whole project for the factory class, it just tries to
1902
- find the one with predefined name. So this is an entry point to the implementation.
1903
-
1904
- ``` java
1905
- // TODO the package name is predefined
1906
- package ru.olegcherednik.json.impl ;
1907
-
1908
- public final class StaticJsonEngineFactory implements JsonEngineFactory {
1909
-
1910
- private static final StaticJsonEngineFactory INSTANCE = new StaticJsonEngineFactory ();
1911
1894
1912
- /*
1913
- * Mandatory method.
1914
- *
1915
- * Retrieves a singleton instance of the factory. The method must have the
1916
- * signature like this. Do not change it!
1917
- *
1918
1895
* @return not `null ` singleton instance of the factory
1919
1896
*/
1920
1897
public static StaticJsonEngineFactory getInstance() {
@@ -1941,18 +1918,6 @@ public final class StaticJsonEngineFactory implements JsonEngineFactory {
1941
1918
return JacksonFactory . createJsonEngine(settings);
1942
1919
}
1943
1920
1944
- @Override
1945
- public JsonEngine createPrettyPrintJsonEngine (JsonSettings settings ) {
1946
- return JacksonFactory . createPrettyPrintJsonEngine(settings);
1947
- }
1948
- }
1949
- ```
1950
-
1951
- There are two main classes. All other code of the implementation is under your control. As an example you can use any
1952
- of existed implementations, e.g. [ json-jackson-impl] ( https://github.com/oleg-cherednik/json-jackson-impl )
1953
- or [ json-gson-impl] ( https://github.com/oleg-cherednik/json-gson-impl ) .
1954
-
1955
- ## Links
1956
1921
1957
1922
* Home page: < https: // github.com/oleg-cherednik/json-api>
1958
1923
* Maven :
0 commit comments