jp.terasoluna.fw.web.struts.action
Class PropertyMessageResourcesExFactory

java.lang.Object
  extended by org.apache.struts.util.MessageResourcesFactory
      extended by jp.terasoluna.fw.web.struts.action.PropertyMessageResourcesExFactory
All Implemented Interfaces:
java.io.Serializable

public class PropertyMessageResourcesExFactory
extends org.apache.struts.util.MessageResourcesFactory

Factory class that generates PropertyMessageResourcesEx.

PropertyMessageResourcesExenables to fetch system message resources and application message resources.

How to use

Add the following description in <message-resources> element of Struts configuration file (struts-config.xml) and use PropertyMessageResourcesExFactory as the message factory.


 <message-resources parameter="message"
                    factory="jp.terasoluna.fw.web.struts.action.PropertyMessageResourcesExFactory"/>
 

In the above example, message resource definition file named as "message.properties" and PropertyMessageResourcesExFactory which is the factory class, are specified.
Refer to DBMessageResources for the usage method of message resource provided by Struts and its configuration details.

See Also:
PropertyMessageResourcesEx, DBMessageResourcesFactory, DBMessageResources, GlobalMessageResources, Serialized Form

Field Summary
private static long serialVersionUID
          Serial version ID
 
Fields inherited from class org.apache.struts.util.MessageResourcesFactory
clazz, config, factoryClass, returnNull
 
Constructor Summary
PropertyMessageResourcesExFactory()
           
 
Method Summary
 org.apache.struts.util.MessageResources createResources(java.lang.String config)
          Generates new PropertyMessageResourcesEx.
 
Methods inherited from class org.apache.struts.util.MessageResourcesFactory
createFactory, getConfig, getFactoryClass, getReturnNull, setConfig, setFactoryClass, setReturnNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial version ID

See Also:
Constant Field Values
Constructor Detail

PropertyMessageResourcesExFactory

public PropertyMessageResourcesExFactory()
Method Detail

createResources

public org.apache.struts.util.MessageResources createResources(java.lang.String config)
Generates new PropertyMessageResourcesEx.

Specified by:
createResources in class org.apache.struts.util.MessageResourcesFactory
Parameters:
config - Parameter which is set in request bundle.
Returns:
PropertyMessageResourcesEx instance