|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Instrumenter
A factory for instrumented proxies.
| Field Summary | |
|---|---|
static Test.InstrumentationFilter |
ALL_INSTRUMENTATION
Instrumentation filter that matches everything. |
| Method Summary | |
|---|---|
Object |
createInstrumentedProxy(Test test,
Recorder recorder,
Object target)
Create a proxy object that wraps an target object for a test. |
String |
getDescription()
Public description of the Instrumenter. |
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. |
| Field Detail |
|---|
static final Test.InstrumentationFilter ALL_INSTRUMENTATION
| Method Detail |
|---|
Object createInstrumentedProxy(Test test,
Recorder recorder,
Object target)
throws NotWrappableTypeException
test - The test.recorder - The proxy should use this to instrument the work.target - Object to wrap.
NotWrappableTypeException - If the target object cannot be wrapped.
boolean instrument(Test test,
Recorder recorder,
Object target)
throws NonInstrumentableTypeException
test - 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.
boolean instrument(Test test,
Recorder recorder,
Object target,
Test.InstrumentationFilter filter)
throws NonInstrumentableTypeException
test - 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.String getDescription()
Instrumenter.
null for internal Instrumenters.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||