On Tue, Feb 23, 2016 at 2:58 AM, Steve Marotta <smaro...@cra.com> wrote:
> I looked at the spec and saw that there’s a partial example of how to use
> WeavingHook, but it didn’t talk about how to actually perform the bytecode
> manipulation, leaving it instead as an “exercise to the reader”. Where can I
> find an example of how to do this?

Have a look at MetricsWeavingHook [1] by Ian in Apache Sling which
uses ASM to weave Metric library call to monitor performance

Chetan Mehrotra
[1] 
https://github.com/ieb/sling/blob/SLING-4849/bundles/extensions/metrics/src/main/java/org/apache/sling/metrics/impl/MetricsWeavingHook.java
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to