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

Filter out beans from CDI from build time discovery #499

Closed
lburgazzoli opened this issue Dec 3, 2019 · 2 comments · Fixed by #501
Closed

Filter out beans from CDI from build time discovery #499

lburgazzoli opened this issue Dec 3, 2019 · 2 comments · Fixed by #501
Assignees

Comments

@lburgazzoli
Copy link
Contributor

If i.e. a component is defined using CDI, like:

@Singleton
public class CamelComponents {
    @Singleton
    @Named("direct")
    @Produces
    DirectComponent directComponent() {
        DirectComponent component = new DirectComponent();
        component.setTimeout(1234);

        return component;
    }
}

we should exclude it from build time auto discovery

@ppalaga
Copy link
Contributor

ppalaga commented Dec 3, 2019

we should exclude it from build time auto discovery

Why?

@lburgazzoli
Copy link
Contributor Author

because the auto discovered one has lower priority than the the runtime one so there's no point to have an unused instance of a component/language/data-format in the registry

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.

2 participants