View Javadoc

1   /*
2    * TemplateBindingFactory.java
3    *
4    */ 
5   
6   package net.sf.tacos.binding;
7   
8   import org.apache.hivemind.Location;
9   import org.apache.tapestry.IBinding;
10  import org.apache.tapestry.IComponent;
11  import org.apache.tapestry.binding.AbstractBindingFactory;
12  import org.apache.tapestry.binding.BindingFactory;
13  
14  /**
15   *
16   * @author andyhot
17   */
18  public class TemplateBindingFactory extends AbstractBindingFactory
19  {
20      /**
21       * Internal used BindingFactory
22       */
23      private BindingFactory nestedBindingFactory;
24  
25      /**
26       * The BindingFactory for creating the inside variable IBinding.
27       *
28       * @param nestedBindingFactory Internal used BindingFactory
29       */
30      public void setNestedBindingFactory(BindingFactory nestedBindingFactory)
31      {
32          this.nestedBindingFactory = nestedBindingFactory;
33      }
34  
35      /**
36       * @see org.apache.tapestry.binding.BindingFactory#createBinding(org.apache.tapestry.IComponent, String, String, org.apache.hivemind.Location)
37       */
38      public IBinding createBinding(IComponent root, String bindingDescription, String path, Location location)
39      {
40          return new TemplateBinding(bindingDescription, location, getValueConverter(), root, path, nestedBindingFactory);
41      }
42  }