In Kotlin if you don\'t want to initialize a class property inside the constructor or in the top of the class body, you have basically these two options (from the language r
If you are using Spring container and you want to initialize non-nullable bean field, lateinit is better suited.
lateinit
@Autowired lateinit var myBean: MyBean