protected static class AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.SerializationImplementation extends Object implements Implementation
writeReplace
method for serializable lambda expressions.Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target
Modifier | Constructor and Description |
---|---|
protected |
SerializationImplementation(TypeDescription targetType,
TypeDescription lambdaType,
String lambdaMethodName,
JavaInstance.MethodType lambdaMethod,
JavaInstance.MethodHandle targetMethod,
JavaInstance.MethodType specializedMethod)
Creates a new implementation for a serializable's lambda expression's
writeReplace method. |
Modifier and Type | Method and Description |
---|---|
ByteCodeAppender |
appender(Implementation.Target implementationTarget)
Creates a byte code appender that determines the implementation of the instrumented type's methods.
|
boolean |
equals(Object other) |
int |
hashCode() |
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
String |
toString() |
protected SerializationImplementation(TypeDescription targetType, TypeDescription lambdaType, String lambdaMethodName, JavaInstance.MethodType lambdaMethod, JavaInstance.MethodHandle targetMethod, JavaInstance.MethodType specializedMethod)
writeReplace
method.targetType
- The lambda expression's declaring type.lambdaType
- The lambda expression's functional type.lambdaMethodName
- The lambda expression's functional method name.lambdaMethod
- The method type of the lambda expression's functional method.targetMethod
- A handle that references the lambda expressions invocation target.specializedMethod
- The specialized method type of the lambda expression's functional method.public ByteCodeAppender appender(Implementation.Target implementationTarget)
Implementation
appender
in interface Implementation
implementationTarget
- The target of the current implementation.InstrumentedType.Prepareable.prepare(InstrumentedType)
.public InstrumentedType prepare(InstrumentedType instrumentedType)
InstrumentedType.Prepareable
prepare
in interface InstrumentedType.Prepareable
instrumentedType
- The instrumented type in its current form.Copyright © 2014–2016. All rights reserved.