Class EnvironmentalShadowBuilderImpl
- java.lang.Object
- 
- org.apache.tapestry5.internal.services.EnvironmentalShadowBuilderImpl
 
- 
- All Implemented Interfaces:
- EnvironmentalShadowBuilder
 
 public class EnvironmentalShadowBuilderImpl extends Object implements EnvironmentalShadowBuilder 
- 
- 
Constructor SummaryConstructors Constructor Description EnvironmentalShadowBuilderImpl(PlasticProxyFactory proxyFactory, Environment environment)Construct using the default builtin factory, not the component layer version.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tbuild(Class<T> serviceType)Returns a proxy that delegates all methods to an object obtained fromEnvironment.peekRequired(Class).
 
- 
- 
- 
Constructor Detail- 
EnvironmentalShadowBuilderImplpublic EnvironmentalShadowBuilderImpl(@Builtin PlasticProxyFactory proxyFactory, Environment environment) Construct using the default builtin factory, not the component layer version.
 
- 
 - 
Method Detail- 
buildpublic <T> T build(Class<T> serviceType) Description copied from interface:EnvironmentalShadowBuilderReturns a proxy that delegates all methods to an object obtained fromEnvironment.peekRequired(Class). Note that at the time this method is invoked, the Environment service may still be virtual, and will often not yet have been loaded with values, and that's OK, the resolution is deferred to the instant a method is invoked.- Specified by:
- buildin interface- EnvironmentalShadowBuilder
- Parameters:
- serviceType- the service type, which is used to obtained the delegate instance
- Returns:
- a proxy to the service
 
 
- 
 
-