T
- The class that will be sampled with this ConstructorCallbackpublic interface ConstructorCallback<T>
Modifier and Type | Method and Description |
---|---|
void |
sample(T newObj)
When an object implementing interface
ConstructorCallback is passed to
ConstructorInstrumenter.instrumentClass(Class, ConstructorCallback) ,
it will get executed
whenever a constructor for type T is invoked. |
void sample(T newObj)
ConstructorCallback
is passed to
ConstructorInstrumenter.instrumentClass(Class, ConstructorCallback)
,
it will get executed
whenever a constructor for type T is invoked.newObj
- the new Object
whose construction
we're recording. The object is not fully constructed; any
references to this object that are stored in this callback are
subject to the memory model constraints related to such
objects.Copyright © 2009–2016 Google, Inc.. All rights reserved.