|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.testing.threadtester.CallLoggerFactory
public class CallLoggerFactory
Creates a CallLogger for every instrumented class. A reference to
this class is added to the bytecode of any class instrumented by the
TestInstrumenter.
This class is made public in order to allow instrumented classes to call it, but it should not be called otherwise.
| Method Summary | |
|---|---|
static CallLogger |
createLoggerForNewObject(Object obj)
Method called by instrumented code from within the instrumented constructor. |
static CallLoggerFactory |
getFactory()
Gets a CallLoggerFactory instance. |
com.google.testing.threadtester.ObjectInstrumentationImpl |
getObjectInstrumentation(Object obj)
Gets an ObjectInstrumentationImpl for a given object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static CallLoggerFactory getFactory()
public com.google.testing.threadtester.ObjectInstrumentationImpl getObjectInstrumentation(Object obj)
ObjectInstrumentationImpl for a given object.
IllegalArgumentException - if the object has not been instrumented.public static CallLogger createLoggerForNewObject(Object obj)
Note that it is safe to call this multiple times for a given object. Only a single CallLogger will be returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||