diff options
Diffstat (limited to 'kamon-annotation/src')
-rw-r--r-- | kamon-annotation/src/main/java/kamon/annotation/EnableKamon.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/kamon-annotation/src/main/java/kamon/annotation/EnableKamon.java b/kamon-annotation/src/main/java/kamon/annotation/EnableKamon.java index 97ed9375..49169410 100644 --- a/kamon-annotation/src/main/java/kamon/annotation/EnableKamon.java +++ b/kamon-annotation/src/main/java/kamon/annotation/EnableKamon.java @@ -19,9 +19,16 @@ package kamon.annotation; import java.lang.annotation.*; /** - * A marker annotation for enable the Kamon instrumentation. +* A marker annotation for enable the Kamon instrumentation. +* <p/> +* The AspectJ Weaver will scan all the declared methods of the annotated class that are annotated with +* some Kamon annotations, then create and register the corresponding instruments instances and finally weave +* its aspects around these methods, so that at runtime, these instruments instances get called according +* to the Kamon annotations specification. */ + @Documented +@Inherited @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE}) public @interface EnableKamon {} |