Now that I see this one...is there any way to use the
kotlin-spring
plugin, but be able to close some classes then "by hand" then? For instance, not all Spring beans/classes need to be "open"; an example could be a "controller" class (that doesn't feature, for instance, any
@Transactional
annotation). In that case, it's totally possible to have that just like that, but if I use
@Controller
it will be opened by default because of the
kotlin-spring
plugin.
n
nfrankel
07/05/2017, 2:18 PM
vadimvera: no, i don’t think there’s a way for that
the “openness” of a class at compile time is based on the annotations that have been applied
x
x80486
07/05/2017, 2:19 PM
Yeah, but I was wondering if there was a way I can override that by "saying"
sealed
(or something similar)...
n
nfrankel
07/05/2017, 2:29 PM
the thing is that the plugin is integrated into the compiler itself
so it will “unseal” at compile time
🤔 1
nfrankel
07/05/2017, 2:29 PM
(from what i understand)
s
sdeleuze
07/05/2017, 3:11 PM
If you want a more focused behavior you can use the stock
kotlin-allopen
plugin and configure it with only the annotations and meta-annotations you want.
x
x80486
07/05/2017, 3:12 PM
That's a way...let me try that and see how it goes. Cheers!