Dominik
03/20/2018, 9:17 PMAndreas Sinz
03/20/2018, 9:31 PMDominik
03/20/2018, 10:30 PM@Bean
@Scope(SCOPE_PROTOTYPE)
fun logger(injectionPoint: InjectionPoint): KLogger =
KotlinLogging.logger(injectionPoint.methodParameter!!.containingClass.canonicalName)
Basically there is no real need for a class here other than having a @Configuration
annotation, otherwise no bean will be created.