Skip to content

Read config onto dynamic type. #72

@Vistritium

Description

@Vistritium

Hello,

Is it possible to read config using dynamic type (case class)? Something like

def read(clazz: Class[_], config: com.typesafe.config.Config, path: String): AnyRef = {
    ??? // config.as(path, clazz)
}

it can be assumed that clazz is a case class.
I played a little with no luck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions