org.springframework.integration.expression.ExpressionUtils.createEvaluationContext()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中org.springframework.integration.expression.ExpressionUtils.createEvaluationContext()方法的一些代码示例,展示了ExpressionUtils.createEvaluationContext()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ExpressionUtils.createEvaluationContext()方法的具体详情如下:
包路径:org.springframework.integration.expression.ExpressionUtils
类名称:ExpressionUtils
方法名:createEvaluationContext

ExpressionUtils.createEvaluationContext介绍

[英]Create a StandardEvaluationContext with a MapAccessor in its property accessor property and the supplied ConversionService in its conversionService property.
[中]创建StandardEvaluationContext,在其属性accessor属性中使用MapAccessor,在其ConversionService属性中使用提供的ConversionService。

代码示例

代码示例来源:origin: spring-projects/spring-integration

private static EvaluationContext doCreateContext(BeanFactory beanFactory, boolean simple) {
  ConversionService conversionService = null;
  EvaluationContext evaluationContext = null;
  if (beanFactory != null) {
    evaluationContext =
        simple
            ? IntegrationContextUtils.getSimpleEvaluationContext(beanFactory)
            : IntegrationContextUtils.getEvaluationContext(beanFactory);
  }
  if (evaluationContext == null) {
    if (beanFactory != null) {
      conversionService = IntegrationUtils.getConversionService(beanFactory);
    }
    evaluationContext = createEvaluationContext(conversionService, beanFactory, simple);
  }
  return evaluationContext;
}

代码示例来源:origin: org.springframework.integration/spring-integration-core

private static EvaluationContext doCreateContext(BeanFactory beanFactory, boolean simple) {
  ConversionService conversionService = null;
  EvaluationContext evaluationContext = null;
  if (beanFactory != null) {
    evaluationContext =
        simple
            ? IntegrationContextUtils.getSimpleEvaluationContext(beanFactory)
            : IntegrationContextUtils.getEvaluationContext(beanFactory);
  }
  if (evaluationContext == null) {
    if (beanFactory != null) {
      conversionService = IntegrationUtils.getConversionService(beanFactory);
    }
    evaluationContext = createEvaluationContext(conversionService, beanFactory, simple);
  }
  return evaluationContext;
}

相关文章