org.apache.tapestry.services.impl
Class InjectedValueProviderImpl

java.lang.Object
  extended by org.apache.tapestry.services.impl.InjectedValueProviderImpl
All Implemented Interfaces:
InjectedValueProvider

public class InjectedValueProviderImpl
extends Object
implements InjectedValueProvider

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
InjectedValueProviderImpl(org.apache.hivemind.internal.Module module, org.apache.hivemind.schema.Translator objectTranslator)
          Creates a new value provider.
 
Method Summary
 Object obtainValue(String locator, org.apache.hivemind.Location location)
          Deletegates out to Translator.translate(org.apache.hivemind.internal.Module, java.lang.Class, java.lang.String, org.apache.hivemind.Location) .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InjectedValueProviderImpl

public InjectedValueProviderImpl(org.apache.hivemind.internal.Module module,
                                 org.apache.hivemind.schema.Translator objectTranslator)
Creates a new value provider.

Parameters:
module -
objectTranslator -
Method Detail

obtainValue

public Object obtainValue(String locator,
                          org.apache.hivemind.Location location)
Deletegates out to Translator.translate(org.apache.hivemind.internal.Module, java.lang.Class, java.lang.String, org.apache.hivemind.Location) .

Specified by:
obtainValue in interface InjectedValueProvider
Parameters:
locator - the reference to the HiveMind object to obtain, with a leading prefix indicating type (i.e., "service:", "configuration:", etc.
location - the location of the value, used if an error must be reported.
Returns:
the value


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.