com.github.pukkaone.jarinvoke.InvokeCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jar-invoke Show documentation
Show all versions of jar-invoke Show documentation
Elasticsearch plugin to invoke Java code
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