All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.polyapi.client.internal.proxy.invocation.handler.PolyInvocation Maven / Gradle / Ivy

The newest version!
package io.polyapi.client.internal.proxy.invocation.handler;

import java.lang.reflect.Type;
import java.util.Map;

/**
 * Functional interface that identifies the invocations to be done by the {@link PolyInvocationHandler}.
 */
@FunctionalInterface
public interface PolyInvocation {

  /**
   * Executes the invocation.
   *
   * @param invokingClass The class doing the invocation.
   * @param polyFunctionId The ID of the function to invoke.
   * @param body           The body of the invocation.
   * @param returnType     The expected type return.
   * @return The result of the invocation.
   */
  Object invoke(Class invokingClass, String polyFunctionId, Map body, Type returnType);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy