aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/scala/kamon/supervisor/AspectJPresent.scala
blob: bbb8b69b117fa796000db4405c68cc4190d1b4ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package kamon.supervisor

import org.aspectj.lang.ProceedingJoinPoint
import org.aspectj.lang.annotation.{ Around, Aspect, Pointcut }

@Aspect
class AspectJPresent {

  @Pointcut("execution(* kamon.supervisor.KamonSupervisor.isAspectJPresent())")
  def isAspectJPresentAtModuleSupervisor(): Unit = {}

  @Around("isAspectJPresentAtModuleSupervisor()")
  def aroundIsAspectJPresentAtModuleSupervisor(pjp: ProceedingJoinPoint): Boolean = true

}