Interface MethodHolder

All Known Implementing Classes:
MethodHolder.Binding, MethodHolder.NonBinding

public interface MethodHolder
An interface for managing invocations of methods whose arguments may need to be augmented, by binding in certain parameters ahead of time.

Implementations may use various invocation mechanisms, including:

  • direct method invocation on an held object
  • calling a method pointer
  • calling a MethodHandle bound to the known arguments
  • calling a MethodHandle without binding to the known arguments
Implementations of this may not be thread safe, so the caller must use some external mutual exclusion unless they are using a specific implementation known to be thread-safe.