Details
-
Wish
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
The getConfiguredInstances method of AbstractConfig currently forces values to be either a Class instantiated directly by Kafka or a String that uses dynamic classloading.
This limits how DI systems can integrate with Kafka since if you want to inject an existing Spring, Micronaut, Guice etc. bean to for example by your Metrics reporter then there is no way to do that currently.
What would be useful is if a simple statement such as:
if (t.isInstance(klazz)) {
o = klazz;
}
Could be added here:
This would make it possible to specify instances that are not instantiated by Kafka.