-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GR-32340] Conditional resource configuration. #3774
[GR-32340] Conditional resource configuration. #3774
Conversation
ff2c26a
to
0f2f511
Compare
ae2ac39
to
5721b9b
Compare
import java.util.List; | ||
import java.util.function.Consumer; | ||
|
||
public class ProxyRegistry extends ConditionalConfigurationRegistry implements Consumer<ConditionalElement<List<String>>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be ProxyRegistryImpl
to be consistent with the other registries, and perhaps we should introduce a ProxyRegistry
interface now instead of using Consumer
.
@@ -87,4 +87,9 @@ public int hashCode() { | |||
public int compareTo(ConfigurationCondition o) { | |||
return this.typeName.compareTo(o.typeName); | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe objectReachable()
should really be named alwaysTrue()
for easier comprehension of code that registers types, proxies, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like that, will change.
5721b9b
to
14c6ad3
Compare
oracle/graal#3774 changed the signature of ignoreResources as follows: ``` - public void ignoreResources(String pattern) { + public void ignoreResources(ConfigurationCondition condition, String pattern) { ``` This results in Quarkus throwing a `NoSuchMethodError` exception at the code generated by NativeImageAutoFeatureStep This patch looks for the right method based on the GraalVM/Mandrel version. Closes: quarkusio#20226
oracle/graal#3774 changed the signature of ignoreResources as follows: ``` - public void ignoreResources(String pattern) { + public void ignoreResources(ConfigurationCondition condition, String pattern) { ``` This results in Quarkus throwing a `NoSuchMethodError` exception at the code generated by NativeImageAutoFeatureStep This patch looks for the right method based on the GraalVM/Mandrel version. Closes: quarkusio#20226
oracle/graal#3774 changed the signature of ignoreResources as follows: ``` - public void ignoreResources(String pattern) { + public void ignoreResources(ConfigurationCondition condition, String pattern) { ``` This results in Quarkus throwing a `NoSuchMethodError` exception at the code generated by NativeImageAutoFeatureStep This patch looks for the right method based on the GraalVM/Mandrel version. Closes: quarkusio#20226
oracle/graal#3774 changed the signature of ignoreResources as follows: ``` - public void ignoreResources(String pattern) { + public void ignoreResources(ConfigurationCondition condition, String pattern) { ``` This results in Quarkus throwing a `NoSuchMethodError` exception at the code generated by NativeImageAutoFeatureStep This patch looks for the right method based on the GraalVM/Mandrel version. Closes: quarkusio#20226 (cherry picked from commit b5361d8)
oracle/graal#3774 changed the signature of ignoreResources as follows: ``` - public void ignoreResources(String pattern) { + public void ignoreResources(ConfigurationCondition condition, String pattern) { ``` This results in Quarkus throwing a `NoSuchMethodError` exception at the code generated by NativeImageAutoFeatureStep This patch looks for the right method based on the GraalVM/Mandrel version. Closes: quarkusio#20226 (cherry picked from commit b5361d8)
oracle/graal#3774 changed the signature of ignoreResources as follows: ``` - public void ignoreResources(String pattern) { + public void ignoreResources(ConfigurationCondition condition, String pattern) { ``` This results in Quarkus throwing a `NoSuchMethodError` exception at the code generated by NativeImageAutoFeatureStep This patch looks for the right method based on the GraalVM/Mandrel version. Closes: quarkusio#20226 (cherry picked from commit b5361d8)
The first commit refactors the type resolver out and fixes an issue with reflection configuration.
The second commit introduces conditional configuration for resources.