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

com.github.pukkaone.jarinvoke.RequireCommand 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 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