Skip to content

Commit

Permalink
[RESTEASY-3368] Return the correct Configuration in the producer. It …
Browse files Browse the repository at this point in the history
…needs to be @dependant and return the actual Configuration, not just the global application configuration.

https://issues.redhat.com/browse/RESTEASY-3368
Signed-off-by: James R. Perkins <jperkins@redhat.com>
  • Loading branch information
jamezp committed Aug 14, 2023
1 parent 838003f commit 65e1926
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
package org.jboss.resteasy.cdi;

import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.context.Dependent;
import jakarta.enterprise.context.RequestScoped;
import jakarta.enterprise.inject.Produces;
import jakarta.inject.Singleton;
Expand All @@ -45,10 +46,10 @@
@Singleton
public class ContextProducers {

@ApplicationScoped
@Dependent
@Produces
public Configuration configuration() {
return getProviderFactory();
return getProviderFactory().getContextData(Configuration.class);
}

@RequestScoped
Expand Down

0 comments on commit 65e1926

Please sign in to comment.