huaxingao commented on code in PR #4659:
URL: https://github.com/apache/polaris/pull/4659#discussion_r3417434999
##########
runtime/admin/src/main/java/org/apache/polaris/admintool/config/AdminToolProducers.java:
##########
@@ -90,4 +91,15 @@ public RealmConfig dummyRealmConfig(RealmConfigurationSource
configurationSource
String absentId = UUID.randomUUID().toString();
return new RealmConfigImpl(configurationSource, () -> absentId);
}
+
+ @Produces
+ @ApplicationScoped
+ public RealmContext dummyRealmContext() {
+ // The admin tool serves no HTTP requests, so there is no real per-request
realm. Persistence
+ // backends on the classpath (e.g. the relational-jdbc idempotency store)
declare a RealmContext
+ // injection point; this satisfies CDI validation for those beans, which
are never instantiated
+ // here.
+ String absentId = UUID.randomUUID().toString();
Review Comment:
Fixed. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]