org.objectweb.jac.aspects.tracing
Class DebuggingWrapper

java.lang.Object
  extended byorg.objectweb.jac.core.Wrapper
      extended byorg.objectweb.jac.aspects.tracing.DebuggingWrapper
All Implemented Interfaces:
Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable

public class DebuggingWrapper
extends Wrapper

This wrapper upcalls the debugger when a method that have to be debugged is called and returns.

See Also:
Debugger, Serialized Form

Field Summary
 Debugger debugger
          The actual debugger.
 
Fields inherited from class org.objectweb.jac.core.Wrapper
ac, cr
 
Constructor Summary
DebuggingWrapper(AspectComponent ac)
          The wrapper constructor.
 
Method Summary
 Object construct(ConstructorInvocation invocation)
           
 Object invoke(MethodInvocation invocation)
           
 Object step(Interaction interaction)
          This wrapping method is used to upcall the debugger at each method call.
 
Methods inherited from class org.objectweb.jac.core.Wrapper
attr, attrdef, defines, getAspectComponent, getAspectComponentName, getExceptionHandlers, proceed, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debugger

public Debugger debugger
The actual debugger.

Constructor Detail

DebuggingWrapper

public DebuggingWrapper(AspectComponent ac)
The wrapper constructor.

Parameters:
ac - the aspect that manages this wrapper
Method Detail

step

public Object step(Interaction interaction)
This wrapping method is used to upcall the debugger at each method call.

Returns:
the return value of the orginal method
See Also:
Debugger.startOfMethod(String,String,String,Object[]), Debugger.endOfMethod(String,String,String,Object[],Object,long)

invoke

public Object invoke(MethodInvocation invocation)
              throws Throwable
Specified by:
invoke in interface MethodInterceptor
Overrides:
invoke in class Wrapper
Throws:
Throwable

construct

public Object construct(ConstructorInvocation invocation)
                 throws Throwable
Specified by:
construct in interface ConstructorInterceptor
Overrides:
construct in class Wrapper
Throws:
Throwable