public static Selector expressionSelector(String expr, BeanFactory beanFactory) {
    """
	Helper method for creating an {@code ExpressionSelector}.
	
	@param expr
	The expression to parse.
	@param beanFactory
	The {@link org.springframework.beans.factory.BeanFactory} to use to resolve references in the expression.
	
	@return A new {@link reactor.bus.selector.Selector}
    """
		StandardEvaluationContext evalCtx = new StandardEvaluationContext();
		if(null != beanFactory) {
			evalCtx.setBeanResolver(new BeanFactoryResolver(beanFactory));
		}
		return expressionSelector(expr, evalCtx);
	}
public static Selector expressionSelector(String expr, BeanFactory beanFactory) {
		StandardEvaluationContext evalCtx = new StandardEvaluationContext();
		if(null != beanFactory) {
			evalCtx.setBeanResolver(new BeanFactoryResolver(beanFactory));
		}
		return expressionSelector(expr, evalCtx);
	}
public static Selector expressionSelector ( String expr , BeanFactory beanFactory ) { StandardEvaluationContext evalCtx = new StandardEvaluationContext ( ) ; if ( null != beanFactory ) { evalCtx . setBeanResolver ( new BeanFactoryResolver ( beanFactory ) ) ; } return expressionSelector ( expr , evalCtx ) ; }
Helper method for creating an {@code ExpressionSelector}.

@param expr
The expression to parse.
@param beanFactory
The {@link org.springframework.beans.factory.BeanFactory} to use to resolve references in the expression.

@return A new {@link reactor.bus.selector.Selector}
Helper method for creating an { @code ExpressionSelector } .