Class ExpressionEvaluationConfigurator
- java.lang.Object
-
- com.nomagic.magicdraw.expressions.evaluation.ExpressionEvaluationConfigurator
-
@OpenApiAll public final class ExpressionEvaluationConfigurator extends java.lang.Object
Expression evaluation configurator allows to register expression factories and additional class loaders.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterizedExpressionFactory
getFactory(java.lang.String language)
Get expression factory according language.static ExpressionEvaluationConfigurator
getInstance()
Singleton instance getter.void
registerClassLoader(java.lang.ClassLoader classLoader)
Register additional class loader, to load classes, implementing custom expressions.void
registerFactory(java.lang.String language, ParameterizedExpressionFactory factory)
Register expression factory according expression language.
-
-
-
Method Detail
-
getInstance
public static ExpressionEvaluationConfigurator getInstance()
Singleton instance getter.- Returns:
- singleton instance.
-
registerFactory
public void registerFactory(java.lang.String language, ParameterizedExpressionFactory factory)
Register expression factory according expression language.- Parameters:
language
- expression language.factory
- expression factory to register.
-
getFactory
@CheckForNull public ParameterizedExpressionFactory getFactory(java.lang.String language)
Get expression factory according language.- Parameters:
language
- expression language.- Returns:
- expression factory.
-
registerClassLoader
public void registerClassLoader(java.lang.ClassLoader classLoader)
Register additional class loader, to load classes, implementing custom expressions. It is necessary to register class loader if custom expression implementation comes from plugins.- Parameters:
classLoader
- classloader to register.
-
-