|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentResourceLocator
A central service that encapsulates the rules for locating resources for components. The service can be overridden, or simply decorated, to implement customized rules for locating templates across one or more axes; this is the approach used to skin Tapestry applications.
Method Summary | |
---|---|
List<Resource> |
locateMessageCatalog(Resource baseResource,
ComponentResourceSelector selector)
Locates the properties files that make up the message catalog for a specific component. |
Resource |
locateTemplate(ComponentModel model,
ComponentResourceSelector selector)
Locates the template for a component (including pages and base classes). |
Method Detail |
---|
Resource locateTemplate(ComponentModel model, ComponentResourceSelector selector)
model
- defines the component, including its base resource.selector
- used to identify locale, etc., for the template
List<Resource> locateMessageCatalog(Resource baseResource, ComponentResourceSelector selector)
baseResource
- the resource for the base component properties file (i.e., with the ".properties" file extension)selector
- defined the locale and other axes used to locate individual properties files
LocalizedNameGenerator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |