Skip to content

Commit 1570c15

Browse files
committed
Cleanup from Play references
Signed-off-by: Pierre Adam <adam.pierre.dany@gmail.com>
1 parent d52fc0c commit 1570c15

6 files changed

Lines changed: 20 additions & 22 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ labels: ''
66
---
77

88
**Versions**
9-
PlayFramework:
109
DataTables:
1110
Java:
1211

1312
**Describe the bug**
1413
A clear and concise description of what the problem is.
15-
Give the version
14+
Give the version
1615

1716
**To Reproduce**
1817
Steps to reproduce the behavior. Please post all necessary

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ libraryDependencies += "com.jackson42.java" % "java-datatables" % "23.06"
5959
</dependency>
6060
```
6161

62-
### Implementing a data provider for Play-DataTables
62+
### Implementing a data provider for Java-DataTables
6363

64-
Example of implementation is available in the tests. For a more concrete example, take a look
65-
at [play-ebean-datatables](https://github.com/PierreAdam/play-ebean-datatables)
64+
TODO
6665

6766
## Versions
6867

@@ -79,4 +78,4 @@ at [play-ebean-datatables](https://github.com/PierreAdam/play-ebean-datatables)
7978
## License
8079

8180
This project is released under terms of
82-
the [MIT license](https://raw.githubusercontent.com/PierreAdam/play-ebean-datatables/master/LICENSE).
81+
the [MIT license](https://raw.githubusercontent.com/PierreAdam/java-datatables/master/LICENSE).

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
66
<modelVersion>4.0.0</modelVersion>
77

8-
<groupId>com.jackson42.play</groupId>
9-
<artifactId>play-datatables</artifactId>
10-
<version>21.04u1</version>
8+
<groupId>com.jackson42.java</groupId>
9+
<artifactId>java-datatables</artifactId>
10+
<version>23.06</version>
1111
<packaging>jar</packaging>
1212
<name>Java-DataTables</name>
1313
<description>A Java abstraction to parse queries from JavaScript library DataTables</description>

src/main/java/com/jackson42/java/datatables/configs/PlayDataTablesConfig.java renamed to src/main/java/com/jackson42/java/datatables/configs/JavaDataTablesConfig.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
import java.util.Map;
1414

1515
/**
16-
* PlayDataTablesConfig.
16+
* JavaDataTablesConfig.
1717
*
1818
* @author Pierre Adam
1919
* @since 21.03.29
2020
*/
21-
public class PlayDataTablesConfig {
21+
public class JavaDataTablesConfig {
2222

2323
/**
2424
* The global instance of PlayDataTablesConfig.
2525
*/
26-
private static PlayDataTablesConfig instance;
26+
private static JavaDataTablesConfig instance;
2727

2828
/**
2929
* The Converters.
@@ -33,7 +33,7 @@ public class PlayDataTablesConfig {
3333
/**
3434
* Instantiates a new PlayDataTablesConfig.
3535
*/
36-
private PlayDataTablesConfig() {
36+
private JavaDataTablesConfig() {
3737
this.converters = new HashMap<>();
3838
}
3939

@@ -42,10 +42,10 @@ private PlayDataTablesConfig() {
4242
*
4343
* @return the instance
4444
*/
45-
public synchronized static PlayDataTablesConfig getInstance() {
46-
if (PlayDataTablesConfig.instance == null) {
47-
PlayDataTablesConfig.instance = new PlayDataTablesConfig();
48-
PlayDataTablesConfig.instance
45+
public synchronized static JavaDataTablesConfig getInstance() {
46+
if (JavaDataTablesConfig.instance == null) {
47+
JavaDataTablesConfig.instance = new JavaDataTablesConfig();
48+
JavaDataTablesConfig.instance
4949
.addConverter(new StringConverter())
5050
.addConverter(new IntegerConverter())
5151
.addConverter(new LongConverter())
@@ -59,7 +59,7 @@ public synchronized static PlayDataTablesConfig getInstance() {
5959
.addConverter(new JsonNodeConverter())
6060
.addConverter(new DateTimeConverter());
6161
}
62-
return PlayDataTablesConfig.instance;
62+
return JavaDataTablesConfig.instance;
6363
}
6464

6565
/**
@@ -69,7 +69,7 @@ public synchronized static PlayDataTablesConfig getInstance() {
6969
* @param converter the converter
7070
* @return the play data tables config
7171
*/
72-
public <T> PlayDataTablesConfig addConverter(final Converter<T> converter) {
72+
public <T> JavaDataTablesConfig addConverter(final Converter<T> converter) {
7373
this.converters.put(converter.getBackedType(), converter);
7474
return this;
7575
}

src/main/java/com/jackson42/java/datatables/implementations/SimpleDataTables.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import com.fasterxml.jackson.databind.JsonNode;
1010
import com.fasterxml.jackson.databind.ObjectMapper;
1111
import com.fasterxml.jackson.databind.node.ArrayNode;
12-
import com.jackson42.java.datatables.configs.PlayDataTablesConfig;
12+
import com.jackson42.java.datatables.configs.JavaDataTablesConfig;
1313
import com.jackson42.java.datatables.converters.Converter;
1414
import com.jackson42.java.datatables.entities.Column;
1515
import com.jackson42.java.datatables.entities.Parameters;
@@ -308,7 +308,7 @@ protected Converter<?> tryFindConverter(final Object obj) {
308308

309309
if (converter == null) {
310310
// Try getting a converter from the global converters.
311-
converter = this.getConverterFromMap(obj, PlayDataTablesConfig.getInstance().getConverters());
311+
converter = this.getConverterFromMap(obj, JavaDataTablesConfig.getInstance().getConverters());
312312
}
313313

314314
return converter;

src/main/java/com/jackson42/java/datatables/interfaces/DataTables.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.function.Function;
1919

2020
/**
21-
* PlayDataTables.
21+
* DataTables.
2222
*
2323
* @param <E> the Entity type
2424
* @param <S> the Source Provider type

0 commit comments

Comments
 (0)