@xumingmingv: You can use this library which does two things: YAML parsing (using TypeSafe Config), and binds it into objects (it adds them to Injekt repo for use)… or you can use parts, or look at how it does it.
https://github.com/kohesive/klutter/tree/master/config-typesafe for more help with Klutter there is a channel here that includes it
#C0E542MPZ