Skip to content
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

Config Converter for Class objects #734

Closed
dmlloyd opened this issue Feb 2, 2019 · 1 comment
Closed

Config Converter for Class objects #734

dmlloyd opened this issue Feb 2, 2019 · 1 comment
Assignees
Milestone

Comments

@dmlloyd
Copy link
Member

dmlloyd commented Feb 2, 2019

It should be possible to have Class objects in configuration, as long as the configuration root in question is loaded at run time (either during static init, or rarely, during the main method) and not at build time. For the configuration of build steps, the generic type of the class can be used to generate the appropriate asSubclass call. Classes in configuration would be loaded and cast as the configuration is loaded; missing classes would produce an error. Static init would be the preferred time for this because loading classes in the main method would require them to have previously been registered for reflection.

@dmlloyd
Copy link
Member Author

dmlloyd commented Feb 6, 2019

This one depends on #425 / #770 / etc. in order to provide the config system with a usable class loader during config value conversion.

@gsmet gsmet added this to the 1.1.0 milestone Nov 23, 2019
maxandersen pushed a commit to maxandersen/quarkus that referenced this issue Nov 5, 2022
A JarSource that is created from a ScriptSource should have the
same backingResource as the original ScriptSource.

Fixes quarkusio#734
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants