You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!selectedJdbcDataSourceBuildItem.isPresent()) {
127
-
Stringmessage = String.format(
128
-
"JDBC Store configured but the '%s' datasource is not configured properly. You can configure your datasource by following the guide available at: https://quarkus.io/guides/datasource",
"Custom JDBC delegate implementation class '%s' was not found in Jandex index. " +
137
+
"Make sure the dependency containing this class has proper marker file enabling discovery. " +
138
+
"Alternatively, you can index a dependency using IndexDependencyBuildItem.",
139
+
driverDelegate.get());
140
+
thrownewConfigurationException(message);
141
+
} else {
142
+
// any custom implementation needs to be a subclass of known Quarkus delegate
143
+
booleanimplementsKnownDelegate = false;
144
+
for (DotNameknownImplementation : Set.of(DELEGATE_MSSQL, DELEGATE_POSTGRESQL, DELEGATE_DB2V8, DELEGATE_STDJDBC,
145
+
DELEGATE_HSQLDB)) {
146
+
for (ClassInfoclassInfo : indexView.getAllKnownSubclasses(knownImplementation)) {
147
+
if (classInfo.name().equals(customDelegate.name())) {
148
+
implementsKnownDelegate = true;
149
+
break;
150
+
}
151
+
}
152
+
}
153
+
if (!implementsKnownDelegate) {
154
+
Stringmessage = String.format(
155
+
"Custom JDBC delegate implementation with name '%s' needs to be a subclass of one of the existing Quarkus delegates such as io.quarkus.quartz.runtime.jdbc.QuarkusPostgreSQLDelegate.",
if (!selectedJdbcDataSourceBuildItem.isPresent()) {
167
+
Stringmessage = String.format(
168
+
"JDBC Store configured but the '%s' datasource is not configured properly. You can configure your datasource by following the guide available at: https://quarkus.io/guides/datasource",
0 commit comments