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

Cleanup CDI injection to use Alternatives for testing fixtures etc #7

Open
bluemonk3y opened this issue Jan 20, 2020 · 1 comment
Open
Assignees

Comments

@bluemonk3y
Copy link

bluemonk3y commented Jan 20, 2020

Cleanup CDI injection so that correct impls are specified depending on when it the app is run. i.e. tests use fixtures etc

See
https://docs.jboss.org/weld/reference/latest/en-US/html/specialization.html#_using_alternative_stereotypes
https://quarkus.io/guides/cdi-reference

https://github.com/liquidlabsio/logscape-ng/blob/master/uploader/src/main/resources/META-INF/services/org.eclipse.microprofile.config.spi.Converter

Note:
Quarkus will use test-mode when running unit tests due to launch mode - even when a -Dquarkus.mode=dev was used. However, outside of unit tests it will oblige the system property.

https://quarkus.io/guides/lifecycle#launch-modes

@logscape
Copy link
Contributor

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

No branches or pull requests

2 participants