yole
10/14/2015, 3:38 PMjchannon
10/14/2015, 3:39 PMjchannon
10/14/2015, 3:40 PMjchannon
10/14/2015, 3:40 PMjchannon
10/14/2015, 3:41 PMjchannon
10/14/2015, 3:43 PMString
but after some null checking with the ?
that seems to return a String?
so should I call ToString()
to convert it?yole
10/14/2015, 3:44 PMghlavac
10/14/2015, 3:44 PMjchannon
10/14/2015, 3:45 PMvar email = client.personalInfo?.email;
yole
10/14/2015, 3:45 PMjchannon
10/14/2015, 3:45 PMyole
10/14/2015, 3:46 PMjchannon
10/14/2015, 3:46 PMjchannon
10/14/2015, 3:46 PMcedric
10/14/2015, 4:13 PMcedric
10/14/2015, 4:16 PMsalomonbrys
10/14/2015, 4:18 PMbind<Type>(Annotated()) with whatever
. However kodein does not do reflection (as Mark pointed out, it's more of a dependency lookup library), so to retrieve the dependency, its a parameter : val dep = kodein.instance(Annotated())
. Therefore, Annotated() should not be an annotation but a data class (to support hashcode & equals).
2) Factory bindings are typically for assisted injection.salomonbrys
10/14/2015, 4:19 PMjw
10/14/2015, 4:21 PMjw
10/14/2015, 4:21 PMsalomonbrys
10/14/2015, 4:21 PMcedric
10/14/2015, 6:22 PMfun main()
must return void
, how do I return an exit code to the shell?udalov
System.exit(...)
cedric
10/14/2015, 6:23 PMcedric
10/14/2015, 6:24 PMudalov
cedric
10/14/2015, 6:32 PMudalov
jw
10/14/2015, 6:36 PMjw
10/14/2015, 6:36 PM