本文整理了Java中org.springframework.integration.expression.ExpressionUtils.createEvaluationContext()
方法的一些代码示例,展示了ExpressionUtils.createEvaluationContext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ExpressionUtils.createEvaluationContext()
方法的具体详情如下:
包路径:org.springframework.integration.expression.ExpressionUtils
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!