protected static class MethodCall.ArgumentLoader.ForField.Factory extends Object implements MethodCall.ArgumentLoader.Factory
Modifier | Constructor and Description |
---|---|
protected |
Factory(String name,
FieldLocator.Factory fieldLocatorFactory)
Creates a new argument loader for an existing field.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
int |
hashCode() |
List<MethodCall.ArgumentLoader> |
make(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodDescription invokedMethod)
Creates any number of argument loaders for an instrumentation.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares the instrumented type in order to allow the loading of the represented argument.
|
String |
toString() |
protected Factory(String name, FieldLocator.Factory fieldLocatorFactory)
name
- The name of the field.fieldLocatorFactory
- The field locator to use.public InstrumentedType prepare(InstrumentedType instrumentedType)
MethodCall.ArgumentLoader.Factory
prepare
in interface MethodCall.ArgumentLoader.Factory
instrumentedType
- The instrumented type.public List<MethodCall.ArgumentLoader> make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodDescription invokedMethod)
MethodCall.ArgumentLoader.Factory
make
in interface MethodCall.ArgumentLoader.Factory
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.invokedMethod
- The invoked method.Copyright © 2014–2017. All rights reserved.