ExpressionParser parser =newSpelExpressionParser();StandardEvaluationContext context =newStandardEvaluationContext();context.setBeanResolver(newMyBeanResolver());// This will end up calling resolve(context,"something") on MyBeanResolver during evaluationObject bean =parser.parseExpression("@something").getValue(context);
ExpressionParser parser =newSpelExpressionParser();StandardEvaluationContext context =newStandardEvaluationContext();context.setBeanResolver(newMyBeanResolver());// This will end up calling resolve(context,"&foo") on MyBeanResolver during evaluationObject bean =parser.parseExpression("&foo").getValue(context);