aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego <diegolparra@gmail.com>2015-04-26 14:32:08 -0300
committerDiego <diegolparra@gmail.com>2015-04-26 14:32:08 -0300
commit4ea578a94c2a9b2f1e89940b7655c332b1b846dc (patch)
treef43ca5366cd3f45b8fa914ed2032ed607c7e8401
parent7f1d880aa0672608503874d7edca0426c761afe1 (diff)
downloadKamon-4ea578a94c2a9b2f1e89940b7655c332b1b846dc.tar.gz
Kamon-4ea578a94c2a9b2f1e89940b7655c332b1b846dc.tar.bz2
Kamon-4ea578a94c2a9b2f1e89940b7655c332b1b846dc.zip
= annotation: introduce @Inherited in EnableKamon
-rw-r--r--kamon-annotation/src/main/java/kamon/annotation/EnableKamon.java9
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 {}