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

Custom TypeConverter is not automatically registered #2260

Closed
argorf opened this issue Feb 16, 2021 · 0 comments · Fixed by #2560
Closed

Custom TypeConverter is not automatically registered #2260

argorf opened this issue Feb 16, 2021 · 0 comments · Fixed by #2560
Assignees
Milestone

Comments

@argorf
Copy link

argorf commented Feb 16, 2021

Quarkus version: 1.11.3.Final (i.e latest)
Sample repo that reproduces the issue: https://github.com/argorf/camel-quarkus-custom-converter

Description:
Custom TypeConverter class annotated with @Converter is not registered automatically in the CamelContext. I would expect this to work as documented here: https://camel.apache.org/components/latest/others/cdi.html#_auto_configured_type_converters.
Quoting @davsclaus (for those with access to zulipchat, full thread is here: https://camel.zulipchat.com/#narrow/stream/257302-camel-quarkus/topic/register.20custom.20typeconverter/near/226503486):

yeah this should ideally work out of the box, that classes with @Converter annotation are discovered during the build process. Can you create a github issue about this, and also try with latest release if you havent done so

Workaround:
Manually register any custom converter: getContext().getTypeConverterRegistry().addTypeConverters(...);

@JiriOndrusek JiriOndrusek self-assigned this May 4, 2021
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue May 6, 2021
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue May 6, 2021
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue May 7, 2021
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue May 7, 2021
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue May 7, 2021
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue May 7, 2021
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue May 7, 2021
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue May 7, 2021
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue May 7, 2021
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue May 7, 2021
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue May 7, 2021
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue May 10, 2021
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue May 11, 2021
ppalaga added a commit to ppalaga/camel-quarkus that referenced this issue Jun 9, 2021
ppalaga pushed a commit to ppalaga/camel-quarkus that referenced this issue Jun 9, 2021
ppalaga added a commit to ppalaga/camel-quarkus that referenced this issue Jun 9, 2021
ppalaga pushed a commit to ppalaga/camel-quarkus that referenced this issue Jun 9, 2021
ppalaga added a commit to jboss-fuse/camel-quarkus that referenced this issue Jun 14, 2021
ppalaga pushed a commit to jboss-fuse/camel-quarkus that referenced this issue Jun 14, 2021
@ppalaga ppalaga added this to the 2.0.0-M1 milestone Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants