Interface ParameterBinder

All Known Implementing Classes:
InstanceBinder, ParametersBinder

@Api public interface ParameterBinder
Parameter binder used in InvocableMethod. Used to dynamically set invocation parameters.
Author:
Cezary Kozar 31 maj 2016
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(int index, Class<?> type, InvocableMethod method)
    Returns object that will be used as argument for invoked method.
    boolean
    shouldBind(int index, Class<?> type, InvocableMethod method)
    Must return true if this binder should be used to bind given parameter.
  • Method Details

    • shouldBind

      boolean shouldBind(int index, Class<?> type, InvocableMethod method)
      Must return true if this binder should be used to bind given parameter.
      Parameters:
      index - parameter index (first is 0)
      type - parameter type
      method - invoked method
      Returns:
      true if binder is able to bind parameter
    • bind

      Object bind(int index, Class<?> type, InvocableMethod method)
      Returns object that will be used as argument for invoked method.
      Parameters:
      index - parameter index (first is 0)
      type - parameter type
      method - invoked method
      Returns:
      invocation argument