Package step.functions.packages
Class EmbeddedFunctionPackageImporter
java.lang.Object
step.functions.packages.EmbeddedFunctionPackageImporter
This class aims to import a set of
FunctionPackage
from the
file system-
Constructor Summary
ConstructorDescriptionEmbeddedFunctionPackageImporter
(FunctionPackageAccessor functionPackageAccessor, FunctionPackageManager functionPackageManager) -
Method Summary
Modifier and TypeMethodDescriptionimportEmbeddedFunctionPackages
(@NotNull String packageFolder) Imports all theFunctionPackage
from the specified folder.importFunctionPackages
(String embeddedPackageFolder, boolean localExecution)
-
Constructor Details
-
EmbeddedFunctionPackageImporter
public EmbeddedFunctionPackageImporter(FunctionPackageAccessor functionPackageAccessor, FunctionPackageManager functionPackageManager)
-
-
Method Details
-
importEmbeddedFunctionPackages
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
-