private static Expression getExpression ( String expression ) { if ( isTemplate ( expression ) ) { logger . warn ( "#{...} syntax is not required for this run-time expression " + "and is deprecated in favor of a simple expression string" ) ; return new SpelExpressionParser ( ) . parseExpression ( expression , PARSER_CONTEXT ) ; } return new SpelExpressionParser ( ) . parseExpression ( expression ) ; }
Get expression based on the expression string . At the moment supports both literal and template expressions . Template expressions are deprecated .