1 15 package org.apache.tapestry.binding; 16 17 import org.apache.hivemind.Location; 18 import org.apache.tapestry.IBinding; 19 import org.apache.tapestry.IComponent; 20 import org.apache.tapestry.services.ExpressionCache; 21 import org.apache.tapestry.services.ExpressionEvaluator; 22 23 30 public class OGNLBindingFactory extends AbstractBindingFactory 31 { 32 private ExpressionEvaluator _expressionEvaluator; 33 34 private ExpressionCache _expressionCache; 35 36 public IBinding createBinding(IComponent root, String description, String path, 37 Location location) 38 { 39 return new ExpressionBinding(description, location, getValueConverter(), root, path, 40 _expressionEvaluator, _expressionCache); 41 } 42 43 public void setExpressionCache(ExpressionCache expressionCache) 44 { 45 _expressionCache = expressionCache; 46 } 47 48 public void setExpressionEvaluator(ExpressionEvaluator expressionEvaluator) 49 { 50 _expressionEvaluator = expressionEvaluator; 51 } 52 53 } | Popular Tags |