I am working on a library that will take a user config hocon and user provide case class(in the classpath of the user application), I need to read the hocon config to the case class dynamically at runtime.. Dynamically I mean here that I would not know the case class during compile time, I would only know the case class at runtime by a user input.
How can I read the hocon into case class using its class name or ClassTag? I have tried using pureconfig or kxbmap/configs and other scala wrappers around tsconfig but these need the case class info at compile time.
Is there anyway or any tools to read hocon to case classes dynamically at runtime?