Package org.springframework.expression.spel

Examples of org.springframework.expression.spel.SpelParserConfiguration


  /**
   * Create a parser with standard configuration.
   */
  public SpelExpressionParser() {
    this.configuration = new SpelParserConfiguration(false, false);
  }
View Full Code Here


   * Create a new {@code StandardBeanExpressionResolver} with the given bean class loader,
   * using it as the basis for expression compilation.
   * @param beanClassLoader the factory's bean class loader
   */
  public StandardBeanExpressionResolver(ClassLoader beanClassLoader) {
    this.expressionParser = new SpelExpressionParser(new SpelParserConfiguration(null, beanClassLoader));
  }
View Full Code Here

  /**
   * Create a parser with default settings.
   */
  public SpelExpressionParser() {
    this.configuration = new SpelParserConfiguration();
  }
View Full Code Here

    private final MessageExpressionMethods methods;

    public MessagePartitionResolver(String expression, StandardEvaluationContext evaluationContext, ExpressionParser expressionParser) {
      if (expressionParser == null) {
        // default to mixed mode
        expressionParser = new SpelExpressionParser(new SpelParserConfiguration(SpelCompilerMode.MIXED, null));
      }
      this.expression = expressionParser.parseExpression(expression);
      this.methods = new MessageExpressionMethods(evaluationContext, true, true);
      log.info("Using expression=[" + this.expression.getExpressionString() + "]");
    }
View Full Code Here

TOP

Related Classes of org.springframework.expression.spel.SpelParserConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.