melonstorm
11/26/2015, 12:38 AM*Aware
(e.g. EnvironmentAware
), define setter methods, and there's no way (yet?) in Kotlin to override
these with a property's setter, so you have to it like in Java and implement an independent setter functionmelonstorm
11/26/2015, 12:38 AMmelonstorm
11/26/2015, 12:39 AMmelonstorm
11/26/2015, 12:41 AMmelonstorm
11/26/2015, 12:42 AMandreasbackx
11/26/2015, 12:59 AMandreasbackx
11/26/2015, 12:59 AMandreasbackx
11/26/2015, 1:00 AMmelonstorm
11/26/2015, 1:00 AMab95
01/05/2016, 5:12 PMhotchemi
01/27/2016, 9:48 PMsdeleuze
01/31/2016, 5:01 PMarrayOf()
is mandatory in Kotlin when I want to set a single value of an annotation array attribute like @RequestMapping("/", method = arrayOf(RequestMethod.GET))
(method is declared as RequestMethod[] method() default {}
)? Since Java allows to pass directly a single value, we use this kind of construct a lot in Spring.dh44t
01/31/2016, 5:25 PMdh44t
01/31/2016, 5:25 PMdh44t
01/31/2016, 5:26 PMdh44t
01/31/2016, 5:27 PMdh44t
01/31/2016, 5:27 PMdh44t
01/31/2016, 5:27 PMdh44t
01/31/2016, 5:28 PMsdeleuze
01/31/2016, 10:13 PMsdeleuze
02/03/2016, 4:17 PMsdeleuze
02/03/2016, 4:18 PMarrayOf()
at least with Kotlin 1.0dh44t
02/03/2016, 4:18 PMdh44t
02/03/2016, 4:18 PMjasoet-gdp
02/05/2016, 7:55 AMjasoet-gdp
02/05/2016, 7:55 AMgetBean(Class<T> clz)
or getBean(Class<T> clz, varargs)
sdeleuze
02/05/2016, 9:34 AMdh44t
02/05/2016, 9:55 AMorangy
orangy