Interface MethodDelegationBinder

  • All Known Implementing Classes:
    TargetMethodAnnotationDrivenBinder

    public interface MethodDelegationBinder
    A method delegation binder is responsible for creating a method binding for a source method to a target method. Such a binding allows to implement the source method by calling the target method.

     

    Usually, an implementation will attempt to bind a specific source method to a set of target method candidates where all legal bindings are considered for binding. To chose a specific candidate, an MethodDelegationBinder.AmbiguityResolver will be consulted for selecting a best binding.
    • Method Detail

      • compile

        MethodDelegationBinder.Record compile​(MethodDescription candidate)
        Compiles this method delegation binder for a target method.
        Parameters:
        candidate - The target method to bind.
        Returns:
        A compiled target for binding.