Skip to content

Commit

Permalink
RESTEasy 4.6.1.Beta9
Browse files Browse the repository at this point in the history
RESTEasy 4.6.1.Beta9: Red Hat nexus repository

RESTEasy 4.6.1.Final / remove Red Hat nexus repository

Remove unused properties from pom.xml
  • Loading branch information
ronsigal committed Jun 19, 2021
1 parent 6a50b57 commit 3d08fcf
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 33 deletions.
2 changes: 1 addition & 1 deletion bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<bouncycastle.fips.version>1.0.2.1</bouncycastle.fips.version>
<bouncycastle.tls.fips.version>1.0.11.4</bouncycastle.tls.fips.version>
<jandex.version>2.3.0.Final</jandex.version>
<resteasy.version>4.6.0.Final</resteasy.version>
<resteasy.version>4.6.1.Final</resteasy.version>
<opentracing.version>0.33.0</opentracing.version>
<opentracing-jaxrs.version>1.0.0</opentracing-jaxrs.version>
<opentracing-web-servlet-filter.version>0.4.0</opentracing-web-servlet-filter.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
import io.quarkus.arc.BeanDestroyer;
import io.quarkus.arc.deployment.AdditionalBeanBuildItem;
import io.quarkus.arc.deployment.BeanArchiveIndexBuildItem;
import io.quarkus.arc.deployment.BeanContainerListenerBuildItem;
import io.quarkus.arc.deployment.SyntheticBeanBuildItem;
import io.quarkus.arc.deployment.SyntheticBeanBuildItem.ExtendedBeanConfigurator;
import io.quarkus.arc.processor.BuiltinScope;
Expand Down Expand Up @@ -119,12 +118,6 @@ void setupClientBuilder(BuildProducer<NativeImageResourceBuildItem> resources) {
resources.produce(new NativeImageResourceBuildItem("META-INF/services/javax.ws.rs.client.ClientBuilder"));
}

@Record(ExecutionTime.STATIC_INIT)
@BuildStep
BeanContainerListenerBuildItem fixExtension(RestClientRecorder restClientRecorder) {
return new BeanContainerListenerBuildItem(restClientRecorder.hackAroundExtension());
}

@BuildStep
NativeImageProxyDefinitionBuildItem addProxy() {
return new NativeImageProxyDefinitionBuildItem(ResteasyConfiguration.class.getName());
Expand Down
4 changes: 0 additions & 4 deletions extensions/resteasy-classic/rest-client/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@
jboss-interceptors-api_1.2_spec
</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-cdi</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public <T> T build(Class<T> aClass) throws IllegalStateException, RestClientDefi

T proxy = (T) Proxy.newProxyInstance(classLoader, interfaces,
new ProxyInvocationHandler(aClass, actualClient, getLocalProviderInstances(), client, getBeanManager()));
ClientHeaderProviders.registerForClass(aClass, proxy);
ClientHeaderProviders.registerForClass(aClass, proxy, getBeanManager());
return proxy;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
package io.quarkus.restclient.runtime;

import java.lang.reflect.Field;
import java.util.Set;

import javax.enterprise.inject.spi.CDI;
import javax.ws.rs.RuntimeType;

import org.eclipse.microprofile.rest.client.spi.RestClientBuilderResolver;
import org.jboss.resteasy.client.jaxrs.internal.ResteasyClientBuilderImpl;
import org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl;
import org.jboss.resteasy.microprofile.client.RestClientBuilderImpl;
import org.jboss.resteasy.microprofile.client.RestClientExtension;
import org.jboss.resteasy.plugins.providers.RegisterBuiltin;
import org.jboss.resteasy.spi.InjectorFactory;
import org.jboss.resteasy.spi.ResteasyProviderFactory;

import io.quarkus.arc.runtime.BeanContainer;
import io.quarkus.arc.runtime.BeanContainerListener;
import io.quarkus.runtime.RuntimeValue;
import io.quarkus.runtime.annotations.Recorder;

Expand All @@ -25,21 +20,6 @@ public class RestClientRecorder {

public static ResteasyProviderFactory providerFactory;

public BeanContainerListener hackAroundExtension() {
return new BeanContainerListener() {
@Override
public void created(BeanContainer container) {
try {
Field f = RestClientExtension.class.getDeclaredField("manager");
f.setAccessible(true);
f.set(null, CDI.current().getBeanManager());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
};
}

public void setRestClientBuilderResolver() {
RestClientBuilderResolver.setInstance(new BuilderResolver());
}
Expand Down

0 comments on commit 3d08fcf

Please sign in to comment.