Class ExpressionEvaluationConfigurator
java.lang.Object
com.nomagic.magicdraw.expressions.evaluation.ExpressionEvaluationConfigurator
Expression evaluation configurator allows registering expression factories and additional class loaders.
-
Method Summary
Modifier and TypeMethodDescriptiongetFactory
(String language) Get expression factory according language.Singleton instance getter.void
registerClassLoader
(ClassLoader classLoader) Register additional class loader, to load classes, implementing custom expressions.void
registerFactory
(String language, ParameterizedExpressionFactory factory) Register expression factory according expression language.
-
Method Details
-
getInstance
Singleton instance getter.- Returns:
- singleton instance.
-
registerFactory
Register expression factory according expression language.- Parameters:
language
- expression language.factory
- expression factory to register.
-
getFactory
Get expression factory according language.- Parameters:
language
- expression language.- Returns:
- expression factory.
-
registerClassLoader
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.
-