2020년 3월 29일 일요일

KOTLIN 에서 AspectJ

https://github.com/Ibotta/gradle-aspectj-pipeline-plugin/blob/develop/sample-kotlin/src/main/kotlin/com/ibotta/gradle/aop/kotlin/KotlinAspect.kt 여기를 참고해서 설정하고. @Aspect class KotlinAspect { @Before("execution(* com.sugoigroup.mytvapplication*..*(..))") fun before(joinPoint: JoinPoint) { val methodSignature = joinPoint!!.signature as MethodSignature val methodName...