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
Copy file name to clipboardExpand all lines: surf-api-core/surf-api-core-server/src/main/kotlin/dev/slne/surf/surfapi/core/server/component/ComponentService.kt
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -233,7 +233,7 @@ abstract class ComponentService {
233
233
if (!evaluateEnvironmentConditions(componentMeta, logger)) returnnull
234
234
235
235
// Evaluate @ConditionalOnMissingComponent
236
-
if (!evaluateMissingComponentConditions(componentMeta, loadedComponents, logger)) returnnull
236
+
if (!evaluateMissingComponentConditions(componentMeta, loadedComponents, classLoader, logger)) returnnull
237
237
238
238
// Evaluate @ConditionalOnProperty
239
239
if (!evaluatePropertyConditions(owner, componentMeta, logger)) returnnull
@@ -291,13 +291,19 @@ abstract class ComponentService {
291
291
privatefunevaluateMissingComponentConditions(
292
292
componentMeta:PluginComponentMeta.Component,
293
293
loadedComponents:List<ComponentEntry>,
294
+
classLoader:ClassLoader,
294
295
logger:ComponentLogger
295
296
): Boolean {
296
297
for (missingComponent in componentMeta.conditionalOnMissingComponents) {
297
298
val isLoaded = loadedComponents.any { (component) ->
298
-
val kClass = component::class
299
-
val className = kClass.qualifiedName ?: kClass.java.name
0 commit comments