com.sun.rave.web.ui.util
Class ResourceBundleFactory

java.lang.Object
  extended by com.sun.rave.web.ui.util.ResourceBundleFactory
All Implemented Interfaces:
ResourceFactory

public class ResourceBundleFactory
extends java.lang.Object
implements ResourceFactory

This factory class provides a means to instantiate a java.util.ResouceBundle. It implements the ResourceFactory which the TemplateRenderer knows how to use to create arbitrary Resource objects. This factory utilizes the ResourceBundleManager for efficiency.

See Also:
ResourceFactory, Resource

Constructor Summary
ResourceBundleFactory()
           
 
Method Summary
 java.lang.Object getResource(javax.faces.context.FacesContext context, Resource descriptor)
           This is the factory method responsible for obtaining a ResourceBundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBundleFactory

public ResourceBundleFactory()
Method Detail

getResource

public java.lang.Object getResource(javax.faces.context.FacesContext context,
                                    Resource descriptor)

This is the factory method responsible for obtaining a ResourceBundle. This method uses the ResourceBundleManager to manage instances of ResourceBundles per key/locale.

It should be noted that this method does not do anything if there is already a request attribute with the given id.

Specified by:
getResource in interface ResourceFactory
Parameters:
context - The FacesContext
descriptor - The Resource descriptor that is associated with the requested Resource.
Returns:
The newly created Resource