1 15 package org.apache.tapestry.portlet.bindings; 16 17 import javax.portlet.PortletRequest; 18 19 import org.apache.hivemind.Location; 20 import org.apache.tapestry.IBinding; 21 import org.apache.tapestry.IComponent; 22 import org.apache.tapestry.binding.BindingFactory; 23 import org.apache.tapestry.coerce.ValueConverter; 24 25 31 public class UserAttributeBindingFactory implements BindingFactory 32 { 33 private PortletRequest _request; 34 35 private ValueConverter _valueConverter; 36 37 40 41 public IBinding createBinding(IComponent root, String bindingDescription, String path, 42 Location location) 43 { 44 return new UserAttributeBinding(bindingDescription, _valueConverter, location, _request, 45 path); 46 } 47 48 public void setRequest(PortletRequest request) 49 { 50 _request = request; 51 } 52 53 public void setValueConverter(ValueConverter valueConverter) 54 { 55 _valueConverter = valueConverter; 56 } 57 } 58 | Popular Tags |