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

Unexpected route discovery behavior when "mixing" routes-discovery.include-patterns and bean scopes #6882

Open
x80486 opened this issue Dec 27, 2024 · 0 comments
Labels
area/bean bug Something isn't working

Comments

@x80486
Copy link

x80486 commented Dec 27, 2024

Bug description

I think there may be an (unintended) issue regarding route discovery 🤔

I configured quarkus.camel.routes-discovery.include-patterns setting to control which routes should be discovered:

quarkus:
  camel:
    routes-discovery:
      enabled: true
      include-patterns:
        - tld/domain/route/* # Routes defined in tld.domain.route package

With this configuration, I would expect that no routes, other than the ones defined in include-patterns, will be discovered. This works fine as long as there aren't any RouteBuilder classes with bean-scoped annotations — they will be included as well, regardless of the aforementioned settings.

Is this behavior intended, or could it be considered a bug? I was under the assumption that include-patterns will strictly limit the discovery.

I have reviewed the documentation but could not find any specific mention of this behavior.

@x80486 x80486 added the bug Something isn't working label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bean bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant