|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grinder.scriptengine.AbstractDCRInstrumenter
public abstract class AbstractDCRInstrumenter
Convenient base class for DCR instrumenters.
| Field Summary |
|---|
| Fields inherited from interface net.grinder.scriptengine.Instrumenter |
|---|
ALL_INSTRUMENTATION |
| Constructor Summary | |
|---|---|
protected |
AbstractDCRInstrumenter(DCRContext context)
Constructor for AbstractDCRInstrumenter. |
| Method Summary | |
|---|---|
Object |
createInstrumentedProxy(Test test,
Recorder recorder,
Object target)
Create a proxy object that wraps an target object for a test. |
protected DCRContext |
getContext()
Provide subclasses convenient access to the DCR context. |
protected abstract boolean |
instrument(Object target,
Recorder recorder,
Test.InstrumentationFilter filter)
Hook for sub-class to implement instrumentation. |
boolean |
instrument(Test test,
Recorder recorder,
Object target)
Instrument a target object with a test. |
boolean |
instrument(Test test,
Recorder recorder,
Object target,
Test.InstrumentationFilter filter)
Selectively instrument a target object with a test. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.grinder.scriptengine.Instrumenter |
|---|
getDescription |
| Constructor Detail |
|---|
protected AbstractDCRInstrumenter(DCRContext context)
context - The DCR context.| Method Detail |
|---|
protected final DCRContext getContext()
public final Object createInstrumentedProxy(Test test,
Recorder recorder,
Object target)
throws NotWrappableTypeException
createInstrumentedProxy in interface Instrumentertest - The test.recorder - The proxy should use this to instrument the work.target - Object to wrap.
NotWrappableTypeException - If the target object cannot be wrapped.
public boolean instrument(Test test,
Recorder recorder,
Object target)
throws NonInstrumentableTypeException
instrument in interface Instrumentertest - The test.recorder - Wire the instrumentation to this Recorder.target - The object to instrument.
true if instrumentation was added.
NonInstrumentableTypeException - If the target object cannot be instrumented.
public final boolean instrument(Test test,
Recorder recorder,
Object target,
Test.InstrumentationFilter filter)
throws NonInstrumentableTypeException
instrument in interface Instrumentertest - The test.recorder - Wire the instrumentation to this Recorder.target - The object to instrument.filter - Selects the parts of target to instrument.
true if instrumentation was added.
NonInstrumentableTypeException - If the target object cannot be instrumented.
protected abstract boolean instrument(Object target,
Recorder recorder,
Test.InstrumentationFilter filter)
throws NonInstrumentableTypeException
target - Target object.recorder - Recorder.filter - Selects the parts of target to instrument.
true If this instrumenter successfully processed target, otherwise false.
NonInstrumentableTypeException - If the target object is not of an instrumentable type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||