com.github.pukkaone.jarinvoke.LoadCommand 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 load JAR file.
*/
@Data
@RequiredArgsConstructor
public class LoadCommand implements Command {
private final ModuleResolver moduleResolver;
private final String moduleName;
private final String repositoryUri;
private final String jarCoordinates;
@Override
public Object execute(Map variables, Map> docLookup) {
moduleResolver.load(moduleName, repositoryUri, jarCoordinates);
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy