Following code snippet is an example, how to initialize InvocationInterceptor:
InstrumentationContext ctx = new InstrumentationContext(); InstrumentationDescriptor id = new InstrumentationDescriptor(); id.addInclusionRule("samples.*"); ctx.addInstrumentationDescriptor(id); InvocationInterceptor ii = new InvocationInterceptor(id, "java*",this);@author Mika Riekkinen @version $Revision: 1.9 $ $Date: 2004/04/11 14:22:58 $
|
|