alt.jiapi
Class InstrumentationContext

java.lang.Object
  extended by alt.jiapi.InstrumentationContext

public class InstrumentationContext
extends java.lang.Object

This class acts as a glue, that binds all the classes needed in instrumentation together. Mainly, it contains a List of InstrumentationDescriptors which define what classes will be instrumented and how.

Version:
$Revision: 1.23 $ $Date: 2004/08/04 08:58:04 $
Author:
Mika Riekkinen, Joni Suominen

Constructor Summary
InstrumentationContext()
          Creates a context.
 
Method Summary
 void addInstrumentationDescriptor(InstrumentationDescriptor id)
          Adds an instrumentation descriptor to this context.
 java.util.List getDescriptors()
          Get a List of InstrumentationDescriptors added to this context.
 Loader getLoader()
          Gets a Loader which is configured with this context.
 void instrument(JiapiClass clazz)
          Manipulates the class by configured Instrumentors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstrumentationContext

public InstrumentationContext()
Creates a context.

Method Detail

addInstrumentationDescriptor

public void addInstrumentationDescriptor(InstrumentationDescriptor id)
Adds an instrumentation descriptor to this context. Descriptor contains all the items, that makes it possible to bind together inclusion rules and instrumentors. And exclusion rules.

Parameters:
id - InstrumentationDescriptor
See Also:
InstrumentationDescriptor

getDescriptors

public java.util.List getDescriptors()
Get a List of InstrumentationDescriptors added to this context.

Returns:
a List of descriptors. Returned List is never null.

getLoader

public Loader getLoader()
Gets a Loader which is configured with this context.

Returns:
a Loader

instrument

public void instrument(JiapiClass clazz)
Manipulates the class by configured Instrumentors. All of the InstrumentorChains that are matched with inclusion rule for the given class, will be started.

Parameters:
clazz - JiapiClass to instrument


Copyright © 2001. Documenation generated August 26 2011.