diff --git a/dependencies/pom.xml b/dependencies/pom.xml index 471e1f625ea..93935176e86 100644 --- a/dependencies/pom.xml +++ b/dependencies/pom.xml @@ -1,7 +1,7 @@ 3.0.2 3.6.3 - 3.0.5 + 3.0.9 5.11.1.202105131744-r 5.7.0 2.8.1 diff --git a/microprofile/server/src/main/java/io/helidon/microprofile/server/HelidonHK2InjectionManagerFactory.java b/microprofile/server/src/main/java/io/helidon/microprofile/server/HelidonHK2InjectionManagerFactory.java index ac87c297df3..82c153747d2 100644 --- a/microprofile/server/src/main/java/io/helidon/microprofile/server/HelidonHK2InjectionManagerFactory.java +++ b/microprofile/server/src/main/java/io/helidon/microprofile/server/HelidonHK2InjectionManagerFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Oracle and/or its affiliates. + * Copyright (c) 2022, 2023 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -119,6 +119,11 @@ public void shutdown() { forApplication.shutdown(); } + @Override + public boolean isShutdown() { + return shared.isShutdown() && forApplication.isShutdown(); + } + /** * Registers classes returned by {@code getClasses} in {@code forApplication} and * all other classes in {@code shared}. This is done to keep separation between @@ -366,6 +371,11 @@ public void shutdown() { throw new UnsupportedOperationException("Not supported"); } + @Override + public boolean isShutdown() { + throw new UnsupportedOperationException("Not supported"); + } + @Override public void register(Binding binding) { throw new UnsupportedOperationException("Not supported"); diff --git a/reactive/webserver/jersey/src/main/java/io/helidon/reactive/webserver/jersey/HelidonHK2InjectionManagerFactory.java b/reactive/webserver/jersey/src/main/java/io/helidon/reactive/webserver/jersey/HelidonHK2InjectionManagerFactory.java index 109f2a61508..82c065157fd 100644 --- a/reactive/webserver/jersey/src/main/java/io/helidon/reactive/webserver/jersey/HelidonHK2InjectionManagerFactory.java +++ b/reactive/webserver/jersey/src/main/java/io/helidon/reactive/webserver/jersey/HelidonHK2InjectionManagerFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021, 2022 Oracle and/or its affiliates. + * Copyright (c) 2021, 2023 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -114,6 +114,11 @@ public void shutdown() { forApplication.shutdown(); } + @Override + public boolean isShutdown() { + return shared.isShutdown() && forApplication.isShutdown(); + } + /** * Registers classes returned by {@code getClasses} in {@code forApplication} and * all other classes in {@code shared}. This is done to keep separation between @@ -352,6 +357,11 @@ public void shutdown() { throw new UnsupportedOperationException("Not supported"); } + @Override + public boolean isShutdown() { + throw new UnsupportedOperationException("Not supported"); + } + @Override public void register(Binding binding) { throw new UnsupportedOperationException("Not supported");