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

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

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

Factory class that generates DBMessageResources.

To use the message resource set in DB, add the following description to the <message-resource> element of Struts configuration fle (struts-config.xml) and use DBMessageResourcesFactory as the message factory.


 <message-resources parameter="MessageResources"
                    factory="jp.terasoluna.fw.web.common.DBMessageResourcesFactory"
 />
 

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

See Also:
DBMessageResources, 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
DBMessageResourcesFactory()
           
 
Method Summary
 org.apache.struts.util.MessageResources createResources(java.lang.String config)
          Generates new DBMessageResources.
 
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

DBMessageResourcesFactory

public DBMessageResourcesFactory()
Method Detail

createResources

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

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