public class CompositeInstrumenter extends Object implements Instrumenter
ALL_INSTRUMENTATION
Constructor and Description |
---|
CompositeInstrumenter(Instrumenter... instrumenters)
Constructor.
|
CompositeInstrumenter(List<Instrumenter> instrumenters)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public CompositeInstrumenter(Instrumenter... instrumenters)
instrumenters
- Ordered list of instrumenters.public CompositeInstrumenter(List<Instrumenter> instrumenters)
instrumenters
- Ordered list of instrumenters.public Object createInstrumentedProxy(Test test, Recorder recorder, Object target) throws NotWrappableTypeException
createInstrumentedProxy
in interface Instrumenter
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.public boolean instrument(Test test, Recorder recorder, Object target) throws NonInstrumentableTypeException
instrument
in interface Instrumenter
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.public boolean instrument(Test test, Recorder recorder, Object target, Test.InstrumentationFilter filter) throws NonInstrumentableTypeException
instrument
in interface Instrumenter
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.public String getDescription()
Instrumenter
.getDescription
in interface Instrumenter
null
for internal Instrumenters
.Copyright © 2000-2014. All Rights Reserved.