I've implemented new way of using Service and Serv...
# kvision
r
I've implemented new way of using Service and ServiceManager classes in fullstack projects. Until now the project had to use instances of classes and objects, which were generated by the KVision plugin. The project could not be compiled in IDE without running gradle task first. Now instead of using these classes and objects new functions can be used with only a service interface as a type parameter. Instead of
PingService()
we can use
getService<IPingService>()
and instead of
PingServiceManager
we can use
getServiceManager<IPingService>()
(there are even helper functions
getAllServiceManagers()
and
getServiceManagers(vararg ...)
which return lists of objects). As a result the application can now be fully compiled in IDE, even without any gradle runs. I've converted some example apps to this method (but not all, there are so many 😉)
👌 1
Of course this is fully backward compatible - we can still just use normal, generated names.