org.jaffa.util
Class PropertyMessageResourcesFactory
java.lang.Object
   org.apache.struts.util.MessageResourcesFactory
org.apache.struts.util.MessageResourcesFactory
       org.jaffa.util.PropertyMessageResourcesFactory
org.jaffa.util.PropertyMessageResourcesFactory
- All Implemented Interfaces: 
- Serializable
- public class PropertyMessageResourcesFactory- extends MessageResourcesFactory
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
- See Also:
- Serialized Form
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
PropertyMessageResourcesFactory
public PropertyMessageResourcesFactory()
createResources
public MessageResources createResources(String config)
- 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
- Returns:
- a newly instansiated MessageResources.
 
getDefaultMessageResources
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.
 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.
 
- 
- Returns:
- the default MessageResources instance.
 
Copyright © 2002-2004 JAFFA Project.