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.engine.state.ApplicationStateManager; 21 22 26 public class StateBindingFactory extends AbstractBindingFactory 27 { 28 private ApplicationStateManager _applicationStateManager; 29 30 public void setApplicationStateManager(ApplicationStateManager applicationStateManager) 31 { 32 _applicationStateManager = applicationStateManager; 33 } 34 35 public IBinding createBinding(IComponent root, String bindingDescription, String path, 36 Location location) 37 { 38 return new StateBinding(bindingDescription, getValueConverter(), location, 39 _applicationStateManager, path); 40 } 41 42 } | Popular Tags |