Class ExpressionEvaluationConfigurator

java.lang.Object
com.nomagic.magicdraw.expressions.evaluation.ExpressionEvaluationConfigurator

@OpenApiAll public final class ExpressionEvaluationConfigurator extends Object
Expression evaluation configurator allows registering expression factories and additional class loaders.
  • Method Details

    • getInstance

      public static ExpressionEvaluationConfigurator getInstance()
      Singleton instance getter.
      Returns:
      singleton instance.
    • registerFactory

      public void registerFactory(String language, ParameterizedExpressionFactory factory)
      Register expression factory according expression language.
      Parameters:
      language - expression language.
      factory - expression factory to register.
    • getFactory

      @CheckForNull public ParameterizedExpressionFactory getFactory(String language)
      Get expression factory according language.
      Parameters:
      language - expression language.
      Returns:
      expression factory.
    • registerClassLoader

      public void registerClassLoader(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.