orangy
orangy
Nikky
06/22/2018, 10:40 PMMax Russek
06/22/2018, 11:54 PMorangy
jw
06/22/2018, 11:56 PMjdemeulenaere
06/23/2018, 10:39 AMJonathan Walsh
06/27/2018, 11:37 PMJonathan Walsh
06/27/2018, 11:45 PMBart.K
06/28/2018, 7:10 AMkatsharp
06/28/2018, 8:55 AMkatsharp
06/28/2018, 8:55 AMpavel
06/28/2018, 7:36 PMlucasqueiroz
06/28/2018, 7:59 PMrobfletcher
06/29/2018, 4:20 AMWesfer
06/29/2018, 5:03 AMvoddan
06/29/2018, 5:10 AMdnene
06/29/2018, 5:11 AM123
06/29/2018, 9:05 AMamanda.hinchman-dominguez
06/29/2018, 6:27 PM@Autowired
annotation is intended for dependency injection. I've seen examples use it either as a constructor for classes or just as class variables - does Kotlin have a certain attitude of using @Autowired
compared to other Kotlin dependency injections that can be found like Kodein or Injekt?robfletcher
06/29/2018, 6:29 PMrobfletcher
06/29/2018, 6:30 PMrobfletcher
06/29/2018, 6:30 PMpavel
06/29/2018, 6:34 PM@Autowired
significantly less surprising than alternatives so unless you have a strong reason to do something else, I would go with @Autowired
amanda.hinchman-dominguez
06/29/2018, 6:34 PMmarkdownConverter
for rendering mustache files: now that I'm ready for real data, my app broke, complaining about my constructors for my controller. I don't like it, but I am going to try moving the`markdownConverter` as an @Autowired
fieldamanda.hinchman-dominguez
06/29/2018, 6:35 PMrobfletcher
06/29/2018, 6:36 PMamanda.hinchman-dominguez
06/29/2018, 6:36 PM@Autowired
was one solution I thought of (not sure if it will work), but Kotlin does have a lot of great dependency injections that could be interweaved into other classesamanda.hinchman-dominguez
06/29/2018, 6:37 PMamanda.hinchman-dominguez
06/29/2018, 6:38 PM@Controller class HtmlController(private val cardRepository: CardRepository, private val markdownConverter: MarkDownConverter, private val connectionRepository: ConnectionRepository,
private val twitter: Twitter) {