1 package org.weda.tapestry.binding; 2 3 import org.apache.hivemind.Location; 4 import org.apache.tapestry.IBinding; 5 import org.apache.tapestry.IComponent; 6 import org.apache.tapestry.binding.AbstractBindingFactory; 7 import org.weda.store.ObjectSourceRegistry; 8 9 /** 10 * 11 * @author Mikhail Titov 12 */ 13 public class ObjectSourceBindingFactory extends AbstractBindingFactory{ 14 private ObjectSourceRegistry objectSourceRegistry; 15 16 public IBinding createBinding( 17 IComponent iComponent, String description, String expression 18 , Location location) 19 { 20 return new ObjectSourceBinding( 21 description, getValueConverter(), location, objectSourceRegistry 22 , expression); 23 } 24 25 public void setObjectSourceRegistry( 26 ObjectSourceRegistry objectSourceRegistry) { 27 this.objectSourceRegistry = objectSourceRegistry; 28 } 29 30 }