Class EnvironmentalShadowBuilderImpl

    • Method Detail

      • build

        public <T> T build​(java.lang.Class<T> serviceType)
        Description copied from interface: EnvironmentalShadowBuilder
        Returns a proxy that delegates all methods to an object obtained from 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.
        Specified by:
        build in interface EnvironmentalShadowBuilder
        Parameters:
        serviceType - the service type, which is used to obtained the delegate instance
        Returns:
        a proxy to the service