com.github.pukkaone.jarinvoke.RequireCommand 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 if not already loaded.
*/
@Data
@RequiredArgsConstructor
public class RequireCommand 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.require(moduleName, repositoryUri, jarCoordinates);
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy