Skip to content

Commit 2d80908

Browse files
#2 update README.md - for oleg
1 parent 11730aa commit 2d80908

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

README.md

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,30 +1891,7 @@ final class JacksonFactory {
18911891
* json framework
18921892
*/
18931893
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();
19111894

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-
*
19181895
* @return not `null` singleton instance of the factory
19191896
*/
19201897
public static StaticJsonEngineFactory getInstance() {
@@ -1941,18 +1918,6 @@ public final class StaticJsonEngineFactory implements JsonEngineFactory {
19411918
return JacksonFactory.createJsonEngine(settings);
19421919
}
19431920

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
19561921

19571922
* Home page: <https://github.com/oleg-cherednik/json-api>
19581923
* Maven:

0 commit comments

Comments
 (0)