File tree Expand file tree Collapse file tree 12 files changed +28
-10
lines changed
avaje-jex-grizzly-spi/src/main/java
examples/example-jdk-jsonb/src/main/java/org/example Expand file tree Collapse file tree 12 files changed +28
-10
lines changed Original file line number Diff line number Diff line change 88import java .util .concurrent .ExecutorService ;
99import java .util .concurrent .Executors ;
1010
11+ import io .avaje .applog .AppLog ;
1112import org .glassfish .grizzly .http .server .HttpServer ;
1213import org .glassfish .grizzly .http .server .NetworkListener ;
1314import org .glassfish .grizzly .http .server .ServerConfiguration ;
1920
2021final class GrizzlyHttpServer extends com .sun .net .httpserver .HttpsServer {
2122 private static final System .Logger LOG =
22- System .getLogger (GrizzlyHttpServer .class .getCanonicalName ());
23+ AppLog .getLogger (GrizzlyHttpServer .class .getCanonicalName ());
2324 private final HttpServer server ;
2425 private InetSocketAddress addr ;
2526 private ServerConfiguration httpConfiguration ;
Original file line number Diff line number Diff line change 1212
1313 requires static io .avaje .spi ;
1414 requires static java .net .http ;
15+ requires io .avaje .applog ;
1516
16- provides HttpServerProvider with io .avaje .jex .grizzly .spi .GrizzlyHttpServerProvider ;
17+ provides HttpServerProvider with io .avaje .jex .grizzly .spi .GrizzlyHttpServerProvider ;
1718}
Original file line number Diff line number Diff line change 1616
1717 <dependencies >
1818
19+ <dependency >
20+ <groupId >io.avaje</groupId >
21+ <artifactId >avaje-applog</artifactId >
22+ <version >1.0</version >
23+ </dependency >
24+
1925 <dependency >
2026 <groupId >io.avaje</groupId >
2127 <artifactId >avaje-config</artifactId >
Original file line number Diff line number Diff line change 11package io .avaje .jex ;
22
3+ import io .avaje .applog .AppLog ;
4+
35import java .lang .System .Logger .Level ;
46import java .util .ArrayList ;
57import java .util .Collections ;
1012
1113final 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 ();
Original file line number Diff line number Diff line change 1111
1212import com .sun .net .httpserver .HttpServer ;
1313
14+ import io .avaje .applog .AppLog ;
1415import io .avaje .jex .AppLifecycle ;
1516import io .avaje .jex .Jex ;
1617import io .avaje .jex .JexConfig ;
@@ -21,7 +22,7 @@ public final class BootstrapServer {
2122
2223 private BootstrapServer () {}
2324
24- private static final System .Logger log = System .getLogger ("io.avaje.jex" );
25+ private static final System .Logger log = AppLog .getLogger ("io.avaje.jex" );
2526
2627 public static Jex .Server start (Jex jex ) {
2728 final var config = jex .config ();
Original file line number Diff line number Diff line change 44
55import java .util .Map ;
66
7+ import io .avaje .applog .AppLog ;
78import io .avaje .jex .http .HttpStatus ;
89import io .avaje .jex .http .Context ;
910import io .avaje .jex .http .ExceptionHandler ;
@@ -14,7 +15,7 @@ final class ExceptionManager {
1415
1516 private static final String APPLICATION_JSON = "application/json" ;
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 private final Map <Class <?>, ExceptionHandler <?>> handlers ;
2021
Original file line number Diff line number Diff line change 44
55import com .sun .net .httpserver .HttpServer ;
66
7+ import io .avaje .applog .AppLog ;
78import io .avaje .jex .AppLifecycle ;
89import io .avaje .jex .Jex ;
910
1011final class JdkJexServer implements Jex .Server {
1112
12- private static final System .Logger log = System .getLogger ("io.avaje.jex" );
13+ private static final System .Logger log = AppLog .getLogger ("io.avaje.jex" );
1314
1415 private final HttpServer server ;
1516 private final AppLifecycle lifecycle ;
Original file line number Diff line number Diff line change 1414import java .util .Map ;
1515import java .util .stream .Stream ;
1616
17+ import io .avaje .applog .AppLog ;
1718import io .avaje .jex .Jex ;
1819import io .avaje .jex .Routing ;
1920import io .avaje .jex .compression .CompressedOutputStream ;
2829/** Core service methods available to Context implementations. */
2930final class ServiceManager {
3031
31- private static final System .Logger log = System .getLogger ("io.avaje.jex" );
32+ private static final System .Logger log = AppLog .getLogger ("io.avaje.jex" );
3233
3334 private final CompressionConfig compressionConfig ;
3435 private final JsonService jsonService ;
Original file line number Diff line number Diff line change 88import java .util .concurrent .CompletableFuture ;
99import java .util .concurrent .atomic .AtomicBoolean ;
1010
11+ import io .avaje .applog .AppLog ;
1112import io .avaje .jex .http .Context ;
1213import io .avaje .jex .spi .JsonService ;
1314
1415final class SseClientImpl implements SseClient {
1516
16- private static final System .Logger log = System .getLogger (SseClient .class .getCanonicalName ());
17+ private static final System .Logger log = AppLog .getLogger (SseClient .class .getCanonicalName ());
1718
1819 private final AtomicBoolean terminated = new AtomicBoolean (false );
1920 private final Emitter emitter ;
Original file line number Diff line number Diff line change 66import java .util .concurrent .atomic .AtomicLong ;
77import java .util .concurrent .locks .LockSupport ;
88
9+ import io .avaje .applog .AppLog ;
910import io .avaje .jex .Routing ;
1011import io .avaje .jex .http .HttpFilter ;
1112
1213final class Routes implements SpiRoutes {
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 /**
1718 * The "real" handlers by http method.
You can’t perform that action at this time.
0 commit comments