de.twenty11.unitprofile.callback
Class ProfilerCallback

java.lang.Object
  extended by de.twenty11.unitprofile.callback.ProfilerCallback

public class ProfilerCallback
extends Object

the class called from the instrumented methods.


Constructor Summary
ProfilerCallback()
           
 
Method Summary
static void after(String objectName, String methodName)
           
static void before(String objectName, String methodName, int lineNumber)
           
static List<MethodInvocation> getInvocations()
           
static boolean profiling()
           
static MethodInvocation start(String objectName, String methodName, int lineNumber)
          the first invocation for this profiling session.
static void stop(String objectName, String methodName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfilerCallback

public ProfilerCallback()
Method Detail

start

public static MethodInvocation start(String objectName,
                                     String methodName,
                                     int lineNumber)
the first invocation for this profiling session.

Parameters:
objectName -
methodName -
Returns:

stop

public static void stop(String objectName,
                        String methodName)

before

public static void before(String objectName,
                          String methodName,
                          int lineNumber)

after

public static void after(String objectName,
                         String methodName)

profiling

public static boolean profiling()

getInvocations

public static List<MethodInvocation> getInvocations()


Copyright © 2013. All rights reserved.