@Test public void testParser() { String replaced = provider.parseString("${1+1}", request); assertTrue(("2").equals(replaced)); replaced = provider.parseString("${1+1}/${3+4}", request); assertTrue("2/7".equals(replaced)); replaced = provider.parseString("${1+1}/${3+4}/path", request); assertTrue("2/7/path".equals(replaced)); }
@Override public String parseString(String expressionString, WebRequest request) { final Expression expression = this.parseCachedExpression(expressionString, TemplateParserContext.INSTANCE); return this.getValue(expression, request, String.class); }
PortalSpELServiceImpl implements IPortalSpELService, BeanFactoryAware { @Override public String parseString(String expressionString, WebRequest request) { final Expression expression = this.parseCachedExpression(expressionString, TemplateParserContext.INSTANCE); return this.getValue(expression, request, String.class); } }
PortalSpELServiceImpl implements IPortalSpELService, BeanFactoryAware { @Override public String parseString(String expressionString, WebRequest request) { final Expression expression = this.parseCachedExpression(expressionString, TemplateParserContext.INSTANCE); return this.getValue(expression, request, String.class); }  }
PortalSpELServiceImpl implements IPortalSpELService, BeanFactoryAware { @Override public String parseString(String expressionString, WebRequest request) { final Expression expression = this.parseCachedExpression(expressionString, TemplateParserContext.INSTANCE); return this.getValue(expression, request, String.class); }  @Autowired void setPortalRequestUtils(IPortalRequestUtils portalRequestUtils); @Autowired void setUserInstanceManager(IUserInstanceManager userInstanceManager); void setExpressionParser(ExpressionParser expressionParser); @Autowired void setExpressionCache(@Qualifier("SpELExpressionCache") Ehcache expressionCache); @Override void setBeanFactory(BeanFactory beanFactory); @Override Expression parseExpression(String expressionString); @Override Expression parseExpression(String expressionString, ParserContext parserContext); @Override String parseString(String expressionString, WebRequest request); @Override T getValue(String expressionString, WebRequest request, Class<T> desiredResultType); @Override T getValue(Expression expression, WebRequest request, Class<T> desiredResultType); @Override Object getValue(String expressionString, WebRequest request); @Override Object getValue(Expression expression, WebRequest request); @Override String getValue(String expressionString, Object spelEnvironment); }
PortalSpELServiceImpl implements IPortalSpELService, BeanFactoryAware { @Override public String parseString(String expressionString, WebRequest request) { final Expression expression = this.parseCachedExpression(expressionString, TemplateParserContext.INSTANCE); return this.getValue(expression, request, String.class); }  @Autowired void setPortalRequestUtils(IPortalRequestUtils portalRequestUtils); @Autowired void setUserInstanceManager(IUserInstanceManager userInstanceManager); void setExpressionParser(ExpressionParser expressionParser); @Autowired void setExpressionCache(@Qualifier("SpELExpressionCache") Ehcache expressionCache); @Override void setBeanFactory(BeanFactory beanFactory); @Override Expression parseExpression(String expressionString); @Override Expression parseExpression(String expressionString, ParserContext parserContext); @Override String parseString(String expressionString, WebRequest request); @Override T getValue(String expressionString, WebRequest request, Class<T> desiredResultType); @Override T getValue(Expression expression, WebRequest request, Class<T> desiredResultType); @Override Object getValue(String expressionString, WebRequest request); @Override Object getValue(Expression expression, WebRequest request); @Override String getValue(String expressionString, Object spelEnvironment);  }