public ResultsetRowSelector setWhereClause(String whereClause) { AssertArgument.isNotNullAndNotEmpty(whereClause, "whereClause"); this.whereEvaluator = new MVELExpressionEvaluator(); this.whereEvaluator.setExpression(whereClause); return this; }
public void setCloseOnCondition(String closeOnCondition) { AssertArgument.isNotNullAndNotEmpty(closeOnCondition, "closeOnCondition"); this.closeOnCondition = new MVELExpressionEvaluator(); this.closeOnCondition.setExpression(closeOnCondition); }
public ResultsetRowSelector setWhereClause(String whereClause) { AssertArgument.isNotNullAndNotEmpty(whereClause, "whereClause"); this.whereEvaluator = new MVELExpressionEvaluator(); this.whereEvaluator.setExpression(whereClause); return this; }
public void setCloseOnCondition(String closeOnCondition) { AssertArgument.isNotNullAndNotEmpty(closeOnCondition, "closeOnCondition"); this.closeOnCondition = new MVELExpressionEvaluator(); this.closeOnCondition.setExpression(closeOnCondition); }
public static ExpressionEvaluator createInstance(String className, String conditionExpression) { try { ExpressionEvaluator evaluator = (ExpressionEvaluator) ClassUtil.forName(className, Factory.class).newInstance(); if(!(evaluator instanceof ExecutionContextExpressionEvaluator)) { throw new SmooksConfigurationException("Unsupported ExpressionEvaluator type '" + className + "'. Currently only support '" + ExecutionContextExpressionEvaluator.class.getName() + "' implementations."); } evaluator.setExpression(conditionExpression); return evaluator; } catch (ClassNotFoundException e) { throw new SmooksConfigurationException("Failed to load ExpressionEvaluator Class '" + className + "'.", e); } catch (ClassCastException e) { throw new SmooksConfigurationException("Class '" + className + "' is not a valid ExpressionEvaluator. It doesn't implement " + ExpressionEvaluator.class.getName()); } catch (IllegalAccessException e) { throw new SmooksConfigurationException("Failed to load ExpressionEvaluator Class '" + className + "'.", e); } catch (InstantiationException e) { throw new SmooksConfigurationException("Failed to load ExpressionEvaluator Class '" + className + "'.", e); } } }
public static ExpressionEvaluator createInstance(String className, String conditionExpression) { try { ExpressionEvaluator evaluator = (ExpressionEvaluator) ClassUtil.forName(className, Factory.class).newInstance(); if(!(evaluator instanceof ExecutionContextExpressionEvaluator)) { throw new SmooksConfigurationException("Unsupported ExpressionEvaluator type '" + className + "'. Currently only support '" + ExecutionContextExpressionEvaluator.class.getName() + "' implementations."); } evaluator.setExpression(conditionExpression); return evaluator; } catch (ClassNotFoundException e) { throw new SmooksConfigurationException("Failed to load ExpressionEvaluator Class '" + className + "'.", e); } catch (ClassCastException e) { throw new SmooksConfigurationException("Class '" + className + "' is not a valid ExpressionEvaluator. It doesn't implement " + ExpressionEvaluator.class.getName()); } catch (IllegalAccessException e) { throw new SmooksConfigurationException("Failed to load ExpressionEvaluator Class '" + className + "'.", e); } catch (InstantiationException e) { throw new SmooksConfigurationException("Failed to load ExpressionEvaluator Class '" + className + "'.", e); } } }
public static ExpressionEvaluator createInstance(String className, String conditionExpression) { try { ExpressionEvaluator evaluator = (ExpressionEvaluator) ClassUtil.forName(className, Factory.class).newInstance(); if(!(evaluator instanceof ExecutionContextExpressionEvaluator)) { throw new SmooksConfigurationException("Unsupported ExpressionEvaluator type '" + className + "'. Currently only support '" + ExecutionContextExpressionEvaluator.class.getName() + "' implementations."); } evaluator.setExpression(conditionExpression); return evaluator; } catch (ClassNotFoundException e) { throw new SmooksConfigurationException("Failed to load ExpressionEvaluator Class '" + className + "'.", e); } catch (ClassCastException e) { throw new SmooksConfigurationException("Class '" + className + "' is not a valid ExpressionEvaluator. It doesn't implement " + ExpressionEvaluator.class.getName()); } catch (IllegalAccessException e) { throw new SmooksConfigurationException("Failed to load ExpressionEvaluator Class '" + className + "'.", e); } catch (InstantiationException e) { throw new SmooksConfigurationException("Failed to load ExpressionEvaluator Class '" + className + "'.", e); } } }
public static ExpressionEvaluator createInstance(String className, String conditionExpression) { try { ExpressionEvaluator evaluator = (ExpressionEvaluator) ClassUtil.forName(className, Factory.class).newInstance(); if(!(evaluator instanceof ExecutionContextExpressionEvaluator)) { throw new SmooksConfigurationException("Unsupported ExpressionEvaluator type '" + className + "'. Currently only support '" + ExecutionContextExpressionEvaluator.class.getName() + "' implementations."); } evaluator.setExpression(conditionExpression); return evaluator; } catch (ClassNotFoundException e) { throw new SmooksConfigurationException("Failed to load ExpressionEvaluator Class '" + className + "'.", e); } catch (ClassCastException e) { throw new SmooksConfigurationException("Class '" + className + "' is not a valid ExpressionEvaluator. It doesn't implement " + ExpressionEvaluator.class.getName()); } catch (IllegalAccessException e) { throw new SmooksConfigurationException("Failed to load ExpressionEvaluator Class '" + className + "'.", e); } catch (InstantiationException e) { throw new SmooksConfigurationException("Failed to load ExpressionEvaluator Class '" + className + "'.", e); } } }