Class ScalaFeelEngineFactory
java.lang.Object
org.operaton.bpm.dmn.feel.impl.scala.ScalaFeelEngineFactory
- All Implemented Interfaces:
FeelEngineFactory
Factory class to create instances of
FeelEngine, specifically ScalaFeelEngine.
Allows configuration of custom function providers for extending the functionality of
the FEEL engine.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<FeelCustomFunctionProvider> A protected field that stores a list of custom function providers for the FEEL engine. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for the ScalaFeelEngineFactory.ScalaFeelEngineFactory(List<FeelCustomFunctionProvider> customFunctionProviders) Constructs a new instance of ScalaFeelEngineFactory with the given list of custom function providers. -
Method Summary
Modifier and TypeMethodDescriptionCreates a new instance ofScalaFeelEngineconfigured with the optional custom function providers.Retrieves the list of custom function providers that have been configured for the factory.voidsetCustomFunctionProviders(List<FeelCustomFunctionProvider> customFunctionProviders) Sets the custom function providers for the engine factory.
-
Field Details
-
customFunctionProviders
A protected field that stores a list of custom function providers for the FEEL engine. Custom function providers are instances ofFeelCustomFunctionProviderthat define additional custom functions to be made available in FEEL expressions.
-
-
Constructor Details
-
ScalaFeelEngineFactory
public ScalaFeelEngineFactory()Default constructor for the ScalaFeelEngineFactory. Initializes the factory with default settings and no custom function providers. -
ScalaFeelEngineFactory
Constructs a new instance of ScalaFeelEngineFactory with the given list of custom function providers. The custom function providers allow extending the FEEL engine by adding custom functions to FEEL expressions.- Parameters:
customFunctionProviders- a list ofFeelCustomFunctionProviderthat supply additional custom functions to be available in the FEEL engine.
-
-
Method Details
-
createInstance
Creates a new instance ofScalaFeelEngineconfigured with the optional custom function providers. The instance provides an implementation of theFeelEngineinterface for evaluating FEEL expressions.- Specified by:
createInstancein interfaceFeelEngineFactory- Returns:
- a new instance of
ScalaFeelEngine, which implementsFeelEngine.
-
setCustomFunctionProviders
Sets the custom function providers for the engine factory. Custom function providers allow extending the FEEL engine with additional custom functions that can be used in FEEL expressions.- Parameters:
customFunctionProviders- a list ofFeelCustomFunctionProviderinstances, each defining custom functions for the FEEL engine.
-
getCustomFunctionProviders
Retrieves the list of custom function providers that have been configured for the factory. Custom function providers supply additional custom functions that can be used in FEEL expressions.- Returns:
- a list of
FeelCustomFunctionProviderinstances, which define custom functions to extend the functionality of the FEEL engine.
-