https://kotlinlang.org logo
Title
a

abbic

02/23/2023, 4:04 PM
is there a reason the
KoinJavaComponent
functions arent inlined? im having to create my own util fucntions that are, so i can get the same functionality outside of the
KoinComponent
class.
by functionality i just mean not having to pass a
clazz
parameter.
now that i think about it, i dont understand why a KoinComponent is needed in the first place (though its clear why a KoinScopeComponent is). just looking at the implementation of it and KoinJavaComponent makes me think
inject
could just be a global inlined function
a

arnaud.giuliani

02/27/2023, 4:03 PM
yes it could, but the interest is to have a “interface marker” to avoid having it everywhere
a

abbic

02/27/2023, 4:05 PM
yup, i ended up making my own interface marker but inlining the functions
a

arnaud.giuliani

02/28/2023, 2:16 PM
you can open a ticket on Github to suggest it 👍