1 package net.sf.tacos.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.apache.tapestry.services.AbsoluteURLBuilder;
8
9
10
11
12
13
14
15
16 public class AbsoluteAssetBindingFactory extends AbstractBindingFactory {
17
18 private AbsoluteURLBuilder absoluteURLBuilder;
19
20 public AbsoluteURLBuilder getAbsoluteURLBuilder() {
21 return absoluteURLBuilder;
22 }
23
24 public void setAbsoluteURLBuilder(AbsoluteURLBuilder absoluteURLBuilder) {
25 this.absoluteURLBuilder = absoluteURLBuilder;
26 }
27
28 public IBinding createBinding(IComponent root, String description,
29 String expression, Location location) {
30 return new AbsoluteAssetBinding(description, getValueConverter(), absoluteURLBuilder,
31 location, root, expression);
32 }
33
34 }