Skip to content

Commit

Permalink
Ensure ResteasyDeploymentCustomizerBuildItem works for all ResteasyDe…
Browse files Browse the repository at this point in the history
…ployment fields

Fixes: #9647
  • Loading branch information
geoand committed May 28, 2020
1 parent 3dfb48f commit 5941a39
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import org.jboss.logging.Logger;
import org.jboss.resteasy.api.validation.ResteasyConstraintViolation;
import org.jboss.resteasy.api.validation.ViolationReport;
import org.jboss.resteasy.core.ResteasyDeploymentImpl;
import org.jboss.resteasy.microprofile.config.FilterConfigSource;
import org.jboss.resteasy.microprofile.config.ServletConfigSource;
import org.jboss.resteasy.microprofile.config.ServletContextConfigSource;
Expand Down Expand Up @@ -71,6 +70,7 @@
import io.quarkus.resteasy.common.deployment.ResteasyDotNames;
import io.quarkus.resteasy.common.runtime.QuarkusInjectorFactory;
import io.quarkus.resteasy.common.spi.ResteasyJaxrsProviderBuildItem;
import io.quarkus.resteasy.server.common.runtime.QuarkusResteasyDeployment;
import io.quarkus.resteasy.server.common.spi.AdditionalJaxRsResourceDefiningAnnotationBuildItem;
import io.quarkus.resteasy.server.common.spi.AdditionalJaxRsResourceMethodAnnotationsBuildItem;
import io.quarkus.resteasy.server.common.spi.AdditionalJaxRsResourceMethodParamAnnotations;
Expand Down Expand Up @@ -289,7 +289,7 @@ public void build(

Map<String, String> resteasyInitParameters = new HashMap<>();

ResteasyDeployment deployment = new ResteasyDeploymentImpl();
ResteasyDeployment deployment = new QuarkusResteasyDeployment();
registerProviders(deployment, resteasyInitParameters, reflectiveClass, unremovableBeans,
jaxrsProvidersToRegisterBuildItem);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package io.quarkus.resteasy.server.common.runtime;

import java.util.Map;

import org.jboss.resteasy.core.ResteasyDeploymentImpl;

/**
* The only reason this class exists is to make {@code properties} available to bytecode recording
*/
public class QuarkusResteasyDeployment extends ResteasyDeploymentImpl {

public Map<String, Object> getProperties() {
return properties;
}

public void setProperties(Map<String, Object> properties) {
this.properties = properties;
}
}

0 comments on commit 5941a39

Please sign in to comment.