Package step.functions.packages
Class EmbeddedFunctionPackageImporter
- java.lang.Object
-
- step.functions.packages.EmbeddedFunctionPackageImporter
-
public class EmbeddedFunctionPackageImporter extends java.lang.Object
This class aims to import a set ofFunctionPackage
from the file system
-
-
Constructor Summary
Constructors Constructor Description EmbeddedFunctionPackageImporter(FunctionManager functionManager, FunctionPackageAccessor functionPackageAccessor, FunctionPackageManager functionPackageManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
importEmbeddedFunctionPackages(@NotNull java.lang.String packageFolder)
Imports all theFunctionPackage
from the specified folder.protected java.util.List<java.lang.String>
importFunctionPackages(java.lang.String embeddedPackageFolder, boolean localExecution)
-
-
-
Constructor Detail
-
EmbeddedFunctionPackageImporter
public EmbeddedFunctionPackageImporter(FunctionManager functionManager, FunctionPackageAccessor functionPackageAccessor, FunctionPackageManager functionPackageManager)
-
-
Method Detail
-
importEmbeddedFunctionPackages
public java.util.List<java.lang.String> importEmbeddedFunctionPackages(@NotNull @NotNull java.lang.String packageFolder)
Imports all theFunctionPackage
from the specified folder. The import will search in the 2 following sub folders forFunctionPackage
to be imported:- {packageFolder}/local/*
FunctionPackage
located in this folder will be imported as local function- {packageFolder}/remote/*
FunctionPackage
located in this folder will be imported as remote function- Parameters:
packageFolder
- the folder containing theFunctionPackage
to be imported- Returns:
- the list of imported/updated
FunctionPackage
IDs
- {packageFolder}/local/*
-
importFunctionPackages
protected java.util.List<java.lang.String> importFunctionPackages(java.lang.String embeddedPackageFolder, boolean localExecution)
-
-