Interface IndyProxyFactory.BootstrapArgsProvider

Enclosing class:
IndyProxyFactory
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface IndyProxyFactory.BootstrapArgsProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    List<? extends net.bytebuddy.utility.JavaConstant>
    getBootstrapArgsForMethod(net.bytebuddy.description.type.TypeDescription classBeingProxied, net.bytebuddy.description.method.MethodDescription.InDefinedShape proxiedMethodOrCtor)
    Defines the additional arguments to pass to the invokedynamic bootstrap method for a given proxied method.
  • Method Details

    • getBootstrapArgsForMethod

      List<? extends net.bytebuddy.utility.JavaConstant> getBootstrapArgsForMethod(net.bytebuddy.description.type.TypeDescription classBeingProxied, net.bytebuddy.description.method.MethodDescription.InDefinedShape proxiedMethodOrCtor)
      Defines the additional arguments to pass to the invokedynamic bootstrap method for a given proxied method. The arguments have to be storable in the constant pool.
      Parameters:
      classBeingProxied - the type for which IndyProxyFactory.generateProxy(TypeDescription, String) was invoked
      proxiedMethodOrCtor - the method or constructor from the proxied class for which the arguments are requested
      Returns:
      the arguments to pass to the bootstrap method