Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.services
Interface EnvironmentalShadowBuilder

All Known Implementing Classes:
  EnvironmentalShadowBuilderImpl

    public interface EnvironmentalShadowBuilder

Much like `PropertyShadowBuilder`, 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 `Environmental` annotation may only be used within component classes).

Method Summary
`
`<T> T`
` | `build(java.lang.Class<T> serviceType)` Returns a proxy that delegates all methods to an object obtained from `Environment.peekRequired(Class)`.

Method Detail

### build

    <T> T build(java.lang.Class<T> serviceType)

  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.

  Type Parameters:
    `T` -
  Parameters:
    `serviceType` - the service type, which is used to obtained the delegate instance
  Returns:
    a proxy to the service

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.