Skip to content

Commit

Permalink
Ensure future compatibility with Quarkus 3.7 contd.
Browse files Browse the repository at this point in the history
Clear quarkus config factory that is on the classpath
  • Loading branch information
ozangunalp committed Feb 5, 2024
1 parent d86ea3f commit 3bb31ab
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.solace.quarkus.messaging.SolaceConnector;
import com.solace.quarkus.messaging.converters.SolaceMessageConverter;

import io.quarkus.runtime.configuration.QuarkusConfigFactory;
import io.smallrye.config.SmallRyeConfigProviderResolver;
import io.smallrye.config.inject.ConfigExtension;
import io.smallrye.reactive.messaging.providers.MediatorFactory;
Expand Down Expand Up @@ -79,6 +80,8 @@ public void stopContainer() {
}
// Release the config objects
SmallRyeConfigProviderResolver.instance().releaseConfig(ConfigProvider.getConfig());
QuarkusConfigFactory.setConfig(null);
MapBasedConfig.cleanup();
}

public BeanManager getBeanManager() {
Expand Down

0 comments on commit 3bb31ab

Please sign in to comment.