jp.terasoluna.fw.web.struts.action
Class DBMessageResourcesFactory
java.lang.Object
org.apache.struts.util.MessageResourcesFactory
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
Fields inherited from class org.apache.struts.util.MessageResourcesFactory |
clazz, config, factoryClass, returnNull |
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 |
serialVersionUID
private static final long serialVersionUID
- Serial version ID
- See Also:
- Constant Field Values
DBMessageResourcesFactory
public DBMessageResourcesFactory()
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