jp.terasoluna.fw.web.struts.action
Class PropertyMessageResourcesExFactory
java.lang.Object
org.apache.struts.util.MessageResourcesFactory
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.
PropertyMessageResourcesEx
enables 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
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 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 |
serialVersionUID
private static final long serialVersionUID
- Serial version ID
- See Also:
- Constant Field Values
PropertyMessageResourcesExFactory
public PropertyMessageResourcesExFactory()
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