com.infobip.kafkistry.webapp.url.BaseUrls.kt Maven / Gradle / Ivy
package com.infobip.kafkistry.webapp.url
abstract class BaseUrls {
fun schema(): Map {
return this.javaClass.declaredFields
.filter { it.type == Url::class.java }
.associate { field ->
field.isAccessible = true
field.name to field.get(this) as Url
}
}
}