Class AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.SerializationImplementation

java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.SerializationImplementation
All Implemented Interfaces:
InstrumentedType.Prepareable, Implementation
Enclosing class:
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory

@Enhance protected static class AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.SerializationImplementation extends Object implements Implementation
Implements the writeReplace method for serializable lambda expressions.
  • Constructor Details

    • SerializationImplementation

      protected SerializationImplementation(TypeDescription targetType, TypeDescription lambdaType, String lambdaMethodName, JavaConstant.MethodType lambdaMethod, JavaConstant.MethodHandle targetMethod, JavaConstant.MethodType specializedMethod)
      Creates a new implementation for a serializable's lambda expression's writeReplace method.
      Parameters:
      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.
  • Method Details