PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

Replace lateinit binding of dependencies with constructor-injection

Open geoand opened this issue 8 years ago • 0 comments

It is considered good practice in Spring applications to use constructor injection whenever possible (the main reasons are better readability and testability of classes). Moreover, starting with 4.3.RC1 version of Spring, the @Autowired annotation is no longer needed when a class has a single constructor. Leveraging this fact along with Kotlin's very concise constructor syntax yields some nice readability improvements

geoand avatar Sep 16 '16 09:09 geoand