| org.apache.tapestry.ioc.services.PropertyShadowBuilder
All known Subclasses: org.apache.tapestry.ioc.internal.services.PropertyShadowBuilderImpl,
PropertyShadowBuilder | public interface PropertyShadowBuilder (Code) | | Creates a "shadow" of a property of an object. The shadow has the same type as the property, and
delegates all method invocations to the property. Each method invocation on the shadow
re-acquires the value of the property from the underlying object and delegates to the current
value of the property.
Typically, the object in question is another service, one with the "perthread" service lifecycle.
This allows a global singleton to shadow a value that is specific to the current thread (and
therefore, the current request).
|
build | T build(Object source, String propertyName, Class<T> propertyType)(Code) | | < Parameters: T - > Parameters: source - the object from which a property will be extracted Parameters: propertyName - the name of a property of the object, which must be readable Parameters: propertyType - the expected type of the property, the actual property type must be assignable tothis type the shadow |
|
|