@HashCodeAndEqualsPlugin.Enhance protected static class MethodCall.ArgumentLoader.ForField.Factory extends java.lang.Object implements MethodCall.ArgumentLoader.Factory
Modifier and Type | Field and Description |
---|---|
private FieldLocator.Factory |
fieldLocatorFactory
The field locator to use.
|
private java.lang.String |
name
The name of the field.
|
Constructor and Description |
---|
Factory(java.lang.String name,
FieldLocator.Factory fieldLocatorFactory)
Creates a new argument loader for an existing field.
|
Modifier and Type | Method and Description |
---|---|
MethodCall.ArgumentLoader.ArgumentProvider |
make(Implementation.Target implementationTarget)
Creates an argument provider for the supplied implementation target.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
private final java.lang.String name
private final FieldLocator.Factory fieldLocatorFactory
public Factory(java.lang.String name, FieldLocator.Factory fieldLocatorFactory)
name
- The name of the field.fieldLocatorFactory
- The field locator to use.public InstrumentedType prepare(InstrumentedType instrumentedType)
prepare
in interface InstrumentedType.Prepareable
instrumentedType
- The instrumented type in its current form.public MethodCall.ArgumentLoader.ArgumentProvider make(Implementation.Target implementationTarget)
make
in interface MethodCall.ArgumentLoader.Factory
implementationTarget
- The implementation target to use.