Referring to full object path stored in a String from within a quasiquote

Say I have:

val fullObjectName = "my.pck.MyObject"

and I like to use fullObjectName somehow instead of hardcoding this (at least for the object part):


What would be the best way to achieve this?


After a lot of searching around, the following seems to work, though I don’t know if it’s optimal:


Hope it’s helfpuf to somebody!