org.objectweb.jac.wrappers
Class VerboseWrapper

java.lang.Object
  |
  +--org.objectweb.jac.core.Wrapper
        |
        +--org.objectweb.jac.wrappers.VerboseWrapper
All Implemented Interfaces:
Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable

public class VerboseWrapper
extends Wrapper

This wrapper prints some informations about the wrapped method when it is called.

See Also:
Serialized Form

Field Summary
static int NAMED
           
static int STACK
           
static int TIMED
           
protected  int type
           
static int WRAPPERS
           
 
Fields inherited from class org.objectweb.jac.core.Wrapper
ac, cr
 
Constructor Summary
VerboseWrapper(AspectComponent ac, int type)
           
 
Method Summary
 Object construct(ConstructorInvocation invocation)
           
 Object invoke(MethodInvocation invocation)
           
 Object printCallingInfos(Interaction interaction)
          A wrapping method that prints out the calling informations.
 Object printNamedArgs(Interaction interaction)
           
 Object printStackTrace(Interaction interaction)
           
 Object printWrappersTrace(Interaction interaction)
           
 
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

TIMED

public static final int TIMED
See Also:
Constant Field Values

NAMED

public static final int NAMED
See Also:
Constant Field Values

STACK

public static final int STACK
See Also:
Constant Field Values

WRAPPERS

public static final int WRAPPERS
See Also:
Constant Field Values

type

protected int type
Constructor Detail

VerboseWrapper

public VerboseWrapper(AspectComponent ac,
                      int type)
Method Detail

printCallingInfos

public Object printCallingInfos(Interaction interaction)
A wrapping method that prints out the calling informations.

Returns:
the value of the called method

printNamedArgs

public Object printNamedArgs(Interaction interaction)

printStackTrace

public Object printStackTrace(Interaction interaction)

printWrappersTrace

public Object printWrappersTrace(Interaction interaction)

invoke

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

construct

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