Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

kotlin dependency injection

@Component
class Car @Autowired constructor (private val owner: Owner) {
    fun getOwner() : Owner {
        return owner
    }
}

class Owner(private val name: String, private val address: String) {}
Source by tedblob.com #
 
PREVIOUS NEXT
Tagged: #kotlin #dependency #injection
ADD COMMENT
Topic
Name
5+1 =