protected EvaluationContext getEvaluationContext ( PortletRequest request ) { Map < String , String > userInfo = ( Map < String , String > ) request . getAttribute ( PortletRequest . USER_INFO ) ; final SpELEnvironmentRoot root = new SpELEnvironmentRoot ( new PortletWebRequest ( request ) , userInfo ) ; final StandardEvaluationContext context = new StandardEvaluationContext ( root ) ; // Allows for @myBeanName replacements context . setBeanResolver ( this . beanResolver ) ; return context ; }
Return a SpEL evaluation context for the supplied portlet request .