Skip to content

Commit

Permalink
Use package private field injection
Browse files Browse the repository at this point in the history
This is done in order to avoid warnings in Quarkus
(which does support private field injection but needs
to use reflection)

Relates to: quarkusio/quarkus#28420
geoand committed Oct 6, 2022
1 parent e64f76c commit c82ed7a
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -39,10 +39,10 @@ public class WorkerPoolRegistry {
private static final String WORKER_CONCURRENCY = "max-concurrency";

@Inject
private Instance<ExecutionHolder> executionHolder;
Instance<ExecutionHolder> executionHolder;

@Inject
private Instance<Config> configInstance;
Instance<Config> configInstance;

private final Map<String, Integer> workerConcurrency = new HashMap<>();
private final Map<String, WorkerExecutor> workerExecutors = new ConcurrentHashMap<>();
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ public class ConfiguredChannelFactory implements ChannelRegistar {
private final ConnectorFactories factories;

@Inject
private Instance<PublisherDecorator> publisherDecoratorInstance;
Instance<PublisherDecorator> publisherDecoratorInstance;

// CDI requirement for normal scoped beans
protected ConfiguredChannelFactory() {
Original file line number Diff line number Diff line change
@@ -161,11 +161,11 @@ private enum ChannelStatus {

@Inject
@Any
private Instance<RabbitMQOptions> clientOptions;
Instance<RabbitMQOptions> clientOptions;

@Inject
@Any
private Instance<CredentialsProvider> credentialsProviders;
Instance<CredentialsProvider> credentialsProviders;

RabbitMQConnector() {
// used for proxies

0 comments on commit c82ed7a

Please sign in to comment.