protected static class MethodCall.ArgumentLoader.ForInstance.Factory extends Object implements MethodCall.ArgumentLoader.Factory
| Modifier | Constructor and Description | 
|---|---|
protected  | 
Factory(Object value)
Creates a factory that loads the value of a static field as an argument. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
List<MethodCall.ArgumentLoader> | 
make(TypeDescription instrumentedType,
    MethodDescription instrumentedMethod,
    MethodDescription invokedMethod)
Creates any number of argument loaders for an instrumentation. 
 | 
protected static MethodCall.ArgumentLoader.Factory | 
of(Object value)
Creates a factory for loading the supplied value as an argument, either stored as a static field or as a constant pool value. 
 | 
InstrumentedType | 
prepare(InstrumentedType instrumentedType)
Prepares the instrumented type in order to allow the loading of the represented argument. 
 | 
protected Factory(Object value)
value - The value to supply as an argument.protected static MethodCall.ArgumentLoader.Factory of(Object value)
value - The value to supply as an argument.public InstrumentedType prepare(InstrumentedType instrumentedType)
MethodCall.ArgumentLoader.Factoryprepare in interface MethodCall.ArgumentLoader.FactoryinstrumentedType - The instrumented type.public List<MethodCall.ArgumentLoader> make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodDescription invokedMethod)
MethodCall.ArgumentLoader.Factorymake in interface MethodCall.ArgumentLoader.FactoryinstrumentedType - The instrumented type.instrumentedMethod - The instrumented method.invokedMethod - The invoked method.Copyright © 2014–2017. All rights reserved.