wei
06/19/2018, 3:31 PMString
but it is an organization id (with validation, verification, etc.):
class OrganizationId(val id: String) { ... }
And I’d like extend this class to define a method to get all the employees of this organization. I have a DAO that depends on other guice injected properties that I can use to build up this method. My question is:
Can I inject the DAO class into an extension function in kotlin? Something like:
@Inject
fun OrganizationId.getAllEmployees(myDAO: MyDAO) { ... }