public class EnvironmentalShadowBuilderImpl extends Object implements EnvironmentalShadowBuilder
Constructor and Description |
---|
EnvironmentalShadowBuilderImpl(PlasticProxyFactory proxyFactory,
Environment environment)
Construct using the default builtin factory, not the component layer version.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
build(Class<T> serviceType)
Returns a proxy that delegates all methods to an object obtained from
Environment.peekRequired(Class) . |
public EnvironmentalShadowBuilderImpl(@Builtin PlasticProxyFactory proxyFactory, Environment environment)
public <T> T build(Class<T> serviceType)
EnvironmentalShadowBuilder
Environment.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.build
in interface EnvironmentalShadowBuilder
serviceType
- the service type, which is used to obtained the delegate instance5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.