Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 // Copyright 2007 The Apache Software Foundation
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.
Much like, except that instead of accessing a property of some other service, it accesses a value from within the Environment service. This is useful for defining a new service that can be injected into other services (whereas the org.apache.tapestry5.annotations.Environmental annotation may only be used within component classes).
public interface EnvironmentalShadowBuilder
Returns a proxy that delegates all methods to an object obtained from Environment.peekRequired(java.lang.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.

serviceType the service type, which is used to obtained the delegate instance
a proxy to the service
    <T> T build(Class<T> serviceType);
New to GrepCode? Check out our FAQ X