Skip to content

Commit 3894904

Browse files
committed
Use AppLog and update avaje-jsonb
1 parent 227bb1e commit 3894904

File tree

17 files changed

+41
-24
lines changed

17 files changed

+41
-24
lines changed

avaje-jex-grizzly/src/main/java/io/avaje/jex/grizzly/GrizzlyJexServer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.avaje.jex.grizzly;
22

3+
import io.avaje.applog.AppLog;
34
import io.avaje.jex.AppLifecycle;
45
import io.avaje.jex.Jex;
56
import org.glassfish.grizzly.http.server.HttpServer;
@@ -11,7 +12,7 @@
1112

1213
class GrizzlyJexServer implements Jex.Server {
1314

14-
private static final System.Logger log = System.getLogger("io.avaje.jex");
15+
private static final System.Logger log = AppLog.getLogger("io.avaje.jex");
1516

1617
private final HttpServer server;
1718
private final AppLifecycle lifecycle;

avaje-jex-grizzly/src/main/java/io/avaje/jex/grizzly/GrizzlyServerStart.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.avaje.jex.grizzly;
22

3+
import io.avaje.applog.AppLog;
34
import io.avaje.jex.Jex;
45
import io.avaje.jex.spi.SpiRoutes;
56
import io.avaje.jex.spi.SpiServiceManager;
@@ -12,7 +13,7 @@
1213

1314
public class GrizzlyServerStart implements SpiStartServer {
1415

15-
private static final System.Logger log = System.getLogger("io.avaje.jex");
16+
private static final System.Logger log = AppLog.getLogger("io.avaje.jex");
1617

1718
@Override
1819
public Jex.Server start(Jex jex, SpiRoutes routes, SpiServiceManager serviceManager) {

avaje-jex-grizzly/src/main/java/io/avaje/jex/grizzly/HttpServerBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.avaje.jex.grizzly;
22

3+
import io.avaje.applog.AppLog;
34
import org.glassfish.grizzly.http.server.*;
45
import org.glassfish.grizzly.ssl.SSLEngineConfigurator;
56
import org.glassfish.grizzly.utils.Charsets;
@@ -8,7 +9,7 @@
89

910
public class HttpServerBuilder {
1011

11-
private static final System.Logger log = System.getLogger("io.avaje.jex");
12+
private static final System.Logger log = AppLog.getLogger("io.avaje.jex");
1213

1314
private int port = -1;
1415
private String host = "0.0.0.0";

avaje-jex-jdk/src/main/java/io/avaje/jex/jdk/JdkJexServer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
package io.avaje.jex.jdk;
22

33
import com.sun.net.httpserver.HttpServer;
4+
import io.avaje.applog.AppLog;
45
import io.avaje.jex.AppLifecycle;
56
import io.avaje.jex.Jex;
67

78
import java.lang.System.Logger.Level;
89

910
class JdkJexServer implements Jex.Server {
1011

11-
private static final System.Logger log = System.getLogger("io.avaje.jex");
12+
private static final System.Logger log = AppLog.getLogger("io.avaje.jex");
1213

1314
private final HttpServer server;
1415
private final AppLifecycle lifecycle;

avaje-jex-jdk/src/main/java/io/avaje/jex/jdk/JdkServerStart.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package io.avaje.jex.jdk;
22

33
import com.sun.net.httpserver.HttpServer;
4+
import io.avaje.applog.AppLog;
45
import io.avaje.jex.AppLifecycle;
56
import io.avaje.jex.Jex;
67
import io.avaje.jex.spi.SpiRoutes;
@@ -14,7 +15,7 @@
1415

1516
public class JdkServerStart implements SpiStartServer {
1617

17-
private static final System.Logger log = System.getLogger("io.avaje.jex");
18+
private static final System.Logger log = AppLog.getLogger("io.avaje.jex");
1819

1920
@Override
2021
public Jex.Server start(Jex jex, SpiRoutes routes, SpiServiceManager serviceManager) {

avaje-jex-test/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<dependency>
3636
<groupId>io.avaje</groupId>
3737
<artifactId>avaje-jsonb</artifactId>
38-
<version>1.0-RC1</version>
38+
<version>1.0-RC3</version>
3939
<optional>true</optional>
4040
</dependency>
4141

avaje-jex/pom.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@
1515

1616
<dependencies>
1717

18+
<dependency>
19+
<groupId>io.avaje</groupId>
20+
<artifactId>avaje-applog</artifactId>
21+
<version>1.0</version>
22+
</dependency>
23+
1824
<dependency>
1925
<groupId>io.avaje</groupId>
2026
<artifactId>avaje-config</artifactId>
21-
<version>2.0</version>
27+
<version>2.3</version>
2228
<optional>true</optional>
2329
</dependency>
2430

@@ -39,7 +45,7 @@
3945
<dependency>
4046
<groupId>io.avaje</groupId>
4147
<artifactId>avaje-jsonb</artifactId>
42-
<version>0.16</version>
48+
<version>1.0-RC3</version>
4349
<optional>true</optional>
4450
</dependency>
4551

avaje-jex/src/main/java/io/avaje/jex/DefaultLifecycle.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package io.avaje.jex;
22

3+
import io.avaje.applog.AppLog;
4+
35
import java.lang.System.Logger.Level;
46
import java.util.ArrayList;
57
import java.util.Collections;
@@ -10,7 +12,7 @@
1012

1113
final class DefaultLifecycle implements AppLifecycle {
1214

13-
private static final System.Logger log = System.getLogger("io.avaje.jex");
15+
private static final System.Logger log = AppLog.getLogger("io.avaje.jex");
1416

1517
private final List<Pair> shutdownRunnable = new ArrayList<>();
1618
private final ReentrantLock lock = new ReentrantLock();

avaje-jex/src/main/java/io/avaje/jex/core/CoreServiceManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.avaje.jex.core;
22

3+
import io.avaje.applog.AppLog;
34
import io.avaje.jex.*;
45
import io.avaje.jex.spi.HeaderKeys;
56
import io.avaje.jex.spi.JsonService;
@@ -18,7 +19,7 @@
1819
*/
1920
class CoreServiceManager implements SpiServiceManager {
2021

21-
private static final System.Logger log = System.getLogger("io.avaje.jex.Jex");
22+
private static final System.Logger log = AppLog.getLogger("io.avaje.jex");
2223
public static final String UTF_8 = "UTF-8";
2324

2425
private final HttpMethodMap methodMap = new HttpMethodMap();

avaje-jex/src/main/java/io/avaje/jex/core/ExceptionManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.avaje.jex.core;
22

3+
import io.avaje.applog.AppLog;
34
import io.avaje.jex.ErrorHandling;
45
import io.avaje.jex.ExceptionHandler;
56
import io.avaje.jex.http.HttpResponseException;
@@ -12,7 +13,7 @@
1213

1314
class ExceptionManager {
1415

15-
private static final System.Logger log = System.getLogger("io.avaje.jex");
16+
private static final System.Logger log = AppLog.getLogger("io.avaje.jex");
1617

1718
private final ErrorHandling errorHandling;
1819

0 commit comments

Comments
 (0)