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