Skip to content

Commit

Permalink
Merge pull request #71 from astefanutti/34
Browse files Browse the repository at this point in the history
Add note about beans instrumentation restrictions
  • Loading branch information
starksm64 authored Aug 31, 2017
2 parents 02fb27d + 8fe481b commit 726833e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/src/main/asciidoc/metrics_spec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,17 @@ All Java-Classes are in the top-level package `org.eclipse.microprofile.metrics`

All Annotations are in the `org.eclipse.microprofile.metrics.annotation` package

[NOTE]
====
These annotations are interceptor bindings as defined by the Java Interceptors specification.
CDI leverages on the Java Interceptors specification to provide the ability to associate interceptors to beans via typesafe interceptor bindings, as a mean to separate cross-cutting concerns, like Metrics annotations instrumentation, from the application business logic.
Both the Java Interceptors and CDI specifications set restrictions about the type of bean to which an interceptor can be bound.
That implies only _managed beans_ whose bean types are _proxyable_ can be instrumented using the Metrics annotations.
====

The following Annotations exist, see below for common fields:

[cols="1,1,3,2"]
Expand Down

0 comments on commit 726833e

Please sign in to comment.