public static class Forwarding.PreparationHandler.ForField extends Object implements Forwarding.PreparationHandler
Forwarding.PreparationHandler.ForField, Forwarding.PreparationHandler.ForInstance| Modifier | Constructor and Description |
|---|---|
protected |
ForField(String fieldName,
FieldLocator.Factory fieldLocatorFactory)
Creates a new preparation handler for forwarding to a specific field.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
int |
hashCode() |
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
FieldDescription |
resolve(TypeDescription instrumentedType)
Resolves the field to which to delegate.
|
String |
toString() |
protected ForField(String fieldName, FieldLocator.Factory fieldLocatorFactory)
fieldName - The name of the field to delegate to.fieldLocatorFactory - The field locator factory to use.public FieldDescription resolve(TypeDescription instrumentedType)
Forwarding.PreparationHandlerresolve in interface Forwarding.PreparationHandlerinstrumentedType - The instrumented type.public InstrumentedType prepare(InstrumentedType instrumentedType)
InstrumentedType.Prepareableprepare in interface InstrumentedType.PrepareableinstrumentedType - The instrumented type in its current form.Copyright © 2014–2016. All rights reserved.