1 15 package org.apache.tapestry.services.impl; 16 17 import org.apache.hivemind.Location; 18 import org.apache.hivemind.internal.Module; 19 import org.apache.hivemind.schema.Translator; 20 import org.apache.tapestry.services.InjectedValueProvider; 21 22 26 public class InjectedValueProviderImpl implements InjectedValueProvider 27 { 28 private Module _module; 29 30 private Translator _objectTranslator; 31 32 36 public Object obtainValue(String locator, Location location) 37 { 38 return _objectTranslator.translate(_module, Object .class, locator, location); 39 } 40 41 public InjectedValueProviderImpl(Module module, Translator objectTranslator) 42 { 43 _module = module; 44 _objectTranslator = objectTranslator; 45 } 46 } | Popular Tags |