org.apache.tapestry5.services
Interface ComponentValueProvider<T>
- Type Parameters:
T
- type of object provided
public interface ComponentValueProvider<T>
An object used to provide a value of a specific type to a component (represented by an
instance of ComponentResources
). The provider will create and return the value
(some providers may be smart enough to cache a value, but should be implemented in
a thread-safe manner). Often the provider is an inner class of a
ComponentClassTransformWorker
.
- Since:
- 5.2.0
get
T get(ComponentResources resources)
- Provide the object for the indicated component.
- Parameters:
resources
- Identifies the component
- Returns:
- the object
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.