Quarkus: `@RedisClientName` can't be applied to parameters

Created on 23 Oct 2020  路  4Comments  路  Source: quarkusio/quarkus

@RedisClientName can't be applied to parameters and thus named redis clients can't be injected to constructors or producer methods.

areredis kinbug

Most helpful comment

@machi1990 would you provide a fix, or @geoand ?
If not, can you open an issue for MongoDB ?

Working on a fix.

All 4 comments

/cc @machi1990, @gsmet, @cescoffier

Upon a quick check I realized that it might be the case for the Mongo client too https://github.com/quarkusio/quarkus/blob/5b874da798b14eb3aa53228e4962b3d9a5f37b3d/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/MongoClientName.java#L30

/cc @geoand @loicmathieu @cescoffier

@machi1990 would you provide a fix, or @geoand ?
If not, can you open an issue for MongoDB ?

@machi1990 would you provide a fix, or @geoand ?
If not, can you open an issue for MongoDB ?

Working on a fix.

Was this page helpful?
0 / 5 - 0 ratings