public static class Forwarding.PreparationHandler.ForInstance extends Object implements Forwarding.PreparationHandler
Forwarding.PreparationHandler.ForField, Forwarding.PreparationHandler.ForInstance| Modifier | Constructor and Description | 
|---|---|
protected  | 
ForInstance(String fieldName,
           TypeDescription.Generic typeDescription,
           Object delegate)
Creates a new preparation handler for delegating to a 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 ForInstance(String fieldName, TypeDescription.Generic typeDescription, Object delegate)
fieldName - The name of the field to delegate to.typeDescription - The type of the field.delegate - The delegate instance.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.