Skip to content

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

@bluemonk3y

Description

@bluemonk3y

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions