| org.jaffa.util.PropertyMessageResourcesFactory
PropertyMessageResourcesFactory | public class PropertyMessageResourcesFactory extends MessageResourcesFactory (Code) | | Factory for PropertyMessageResources instances. The
configuration paramter for such instances is the base Java package
name of the resources entries from which our keys and values will be
loaded.
This class is based on the struts class org.apache.struts.util.PropertyMessageResourcesFactory
It creates instances of org.jaffa.util.PropertyMessageResources, which loads the properties file using File I/O and supports the flushing of the message-resource cache.
Only one PropertyMessageResourcesFactory instance will be created per config.
author: GautamJ |
Method Summary | |
public MessageResources | createResources(String config) Create and return a newly instansiated MessageResources. | public static MessageResources | getDefaultMessageResources() Returns a reference to the default MessageResources instance, which will point to the ResourceBundle as specified in the 'framework.messageResources.bundle' property of framework.properties file. |
createResources | public MessageResources createResources(String config)(Code) | | Create and return a newly instansiated MessageResources.
This method must be implemented by concrete subclasses.
It'll ensure that only one instance of the MessageResources is instantiated per config.
Parameters: config - Configuration parameter(s) for the requested bundle a newly instansiated MessageResources. |
getDefaultMessageResources | public static MessageResources getDefaultMessageResources()(Code) | | Returns a reference to the default MessageResources instance, which will point to the ResourceBundle as specified in the 'framework.messageResources.bundle' property of framework.properties file.
A null will be returned in case an invalid or if no ResourceBundle is specified in the 'framework.messageResources.bundle' property of framework.properties file.
the default MessageResources instance. |
|
|