Setting the text resource

A number of Renderers for producing standard content types in Pods are provided. Each of these Renderers has an associated Builder class which acts as an API for the Renderer to simplify the task of generating content to pass to the Renderer.

Table 1. Builders & Renderers
Builder Renderer
PodBuilder PodBodyRenderer
ListBuilder ListBodyRenderer
PodListBuilder PodListBodyRenderer
LinkBuilder LinkRenderer
PodBuilder PodBodyRenderer

The builder classes provide a setTextResource(String) method. At runtime each instance of the Renderer uses the properties file received in the 'textresource' attribute to retrieve values that can be localized. We'll see this in action in the next section.