@HashCodeAndEqualsPlugin.Enhance protected static class MethodCall.ArgumentLoader.ForInstance.Factory extends java.lang.Object implements MethodCall.ArgumentLoader.Factory
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
FIELD_PREFIX
The name prefix of the field to store the argument.
|
private java.lang.String |
name
The name of the field.
|
private java.lang.Object |
value
The value to be stored in the field.
|
Constructor and Description |
---|
Factory(java.lang.Object value)
Creates a factory that loads the value of a static field as an argument.
|
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 static final java.lang.String FIELD_PREFIX
private final java.lang.Object value
@HashCodeAndEqualsPlugin.ValueHandling(value=IGNORE) private final java.lang.String name
public Factory(java.lang.Object value)
value
- The value to supply as an argument.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.