org.jsxp.framework.elementprocessing.processors
Class ResourceBundleValue

java.lang.Object
  extended by org.jsxp.framework.elementprocessing.processors.ResourceBundleValue
All Implemented Interfaces:
ElementProcessor

public class ResourceBundleValue
extends java.lang.Object
implements ElementProcessor

Defines how resource are handled by the jsxp framework. This processor will exchange the value of an element to content from a resource bundle. The resource bundle will be resolved by the uri.

The content will be resolved from the resource bundle by the element ID as a key (or a provided key) and the current locale from context.


Constructor Summary
ResourceBundleValue(Element element, java.lang.String uri)
          Instantiates a new resource handler.
ResourceBundleValue(Element element, java.lang.String uri, java.lang.String key)
          Instantiates a new resource handler.
 
Method Summary
 void process(ViewController renderViewController)
          Process elements in the rendering view controller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBundleValue

public ResourceBundleValue(Element element,
                           java.lang.String uri)
Instantiates a new resource handler.

Parameters:
element - the element to process
uri - uri to resolve the resource bundle

ResourceBundleValue

public ResourceBundleValue(Element element,
                           java.lang.String uri,
                           java.lang.String key)
Instantiates a new resource handler.

Parameters:
element - the element to process
uri - uri to resolve the resource bundle
key - the key of the object in the resource bundle
Method Detail

process

public void process(ViewController renderViewController)
Description copied from interface: ElementProcessor
Process elements in the rendering view controller. Normally an element processor will be initialized with references to elements that will be processed during the phase ViewControllerLifeCycle.LifeCyclePhase.ELEMENTPROCESSING.

Specified by:
process in interface ElementProcessor


Copyright © 2012 Oliver Szymanski & David Tanzer