net.sf.jour.instrumentor
Class AbstractInstrumentor

java.lang.Object
  extended by net.sf.jour.instrumentor.AbstractInstrumentor
All Implemented Interfaces:
Instrumentor
Direct Known Subclasses:
ExceptionCatcherInstrumentor, InstanceCounterInstrumentor, MakeEmptyMethodInstrumentor, MakeProtectedMethodInstrumentor, MethodExecutionTimeInstrumentor, ReplaceMethodInstrumentor

public abstract class AbstractInstrumentor
extends java.lang.Object
implements Instrumentor

Contributing Author(s): Misha Lifschitz (Inital implementation) Vlad Skarzhevskyy (Inital implementation)

Version:
$Revision: 46 $ ($Author: vlads $) $Date: 2007-08-28 14:30:40 -0400 (Tue, 28 Aug 2007) $
Author:
michaellif

Field Summary
protected static Logger log
           
protected  PointcutListFilter pointcuts
           
 
Constructor Summary
protected AbstractInstrumentor()
           
 
Method Summary
protected  void classCreated(javassist.CtClass clazz)
           
 InstrumentorResults instrument(javassist.CtClass clazz)
           
abstract  boolean instrumentClass(javassist.CtClass clazz)
           
abstract  boolean instrumentConstructor(javassist.CtClass clazz, javassist.CtConstructor constructor)
           
abstract  boolean instrumentMethod(javassist.CtClass clazz, javassist.CtMethod method)
           
 void setPointcuts(PointcutListFilter pointcuts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log

pointcuts

protected PointcutListFilter pointcuts
Constructor Detail

AbstractInstrumentor

protected AbstractInstrumentor()
Method Detail

instrument

public InstrumentorResults instrument(javassist.CtClass clazz)
                               throws InterceptorException
Specified by:
instrument in interface Instrumentor
Parameters:
clazz - Class to instrument
Throws:
InterceptorException

setPointcuts

public void setPointcuts(PointcutListFilter pointcuts)
Specified by:
setPointcuts in interface Instrumentor

classCreated

protected void classCreated(javassist.CtClass clazz)

instrumentClass

public abstract boolean instrumentClass(javassist.CtClass clazz)
                                 throws InterceptorException
Throws:
InterceptorException

instrumentMethod

public abstract boolean instrumentMethod(javassist.CtClass clazz,
                                         javassist.CtMethod method)
                                  throws InterceptorException
Throws:
InterceptorException

instrumentConstructor

public abstract boolean instrumentConstructor(javassist.CtClass clazz,
                                              javassist.CtConstructor constructor)
                                       throws InterceptorException
Throws:
InterceptorException


Copyright © 2004-2008 pyx4j.com. All Rights Reserved.