1 15 package org.apache.tapestry.binding; 16 17 import org.apache.hivemind.Location; 18 import org.apache.hivemind.util.Defense; 19 import org.apache.tapestry.coerce.ValueConverter; 20 import org.apache.tapestry.services.InjectedValueProvider; 21 22 29 public class HiveMindBinding extends AbstractBinding 30 { 31 private String _objectReference; 32 33 private InjectedValueProvider _provider; 34 35 public HiveMindBinding(String description, ValueConverter valueConverter, Location location, 36 String objectReference, InjectedValueProvider provider) 37 { 38 super(description, valueConverter, location); 39 40 Defense.notNull(objectReference, "objectReference"); 41 Defense.notNull(provider, "provider"); 42 43 _objectReference = objectReference; 44 _provider = provider; 45 } 46 47 public Object getObject() 48 { 49 return _provider.obtainValue(_objectReference, getLocation()); 50 } 51 52 } | Popular Tags |