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

com.github.pukkaone.jarinvoke.InvokeCommand Maven / Gradle / Ivy

There is a newer version: 6.5.4-1
Show newest version
package com.github.pukkaone.jarinvoke;

import java.util.Map;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import org.elasticsearch.index.fielddata.ScriptDocValues;

/**
 * Command to invoke static method of a Java class.
 */
@Data
@RequiredArgsConstructor
public class InvokeCommand implements Command {

  private final ModuleResolver moduleResolver;
  private final String moduleName;
  private final String className;
  private final String methodName;

  @Override
  public Object execute(Map variables, Map> docLookup) {
    return moduleResolver.invoke(moduleName, className, methodName, variables, docLookup);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy