Package io.gorules.zen.loader
Class ClasspathDecisionLoader
java.lang.Object
io.gorules.zen.loader.ClasspathDecisionLoader
- All Implemented Interfaces:
DecisionLoader
Loads decision models from classpath resources.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<io.gorules.zen_engine.JsonBuffer> Load a decision by its key.
-
Constructor Details
-
ClasspathDecisionLoader
Create classpath loader.- Parameters:
rootPath- Root classpath path
-
-
Method Details
-
load
Description copied from interface:DecisionLoaderLoad a decision by its key.- Specified by:
loadin interfaceDecisionLoader- Parameters:
key- Decision key/filename- Returns:
- CompletableFuture with decision content as JsonBuffer
-