com.mockrunner.struts
Class MapMessageResourcesFactory
java.lang.Object
org.apache.struts.util.MessageResourcesFactory
com.mockrunner.struts.MapMessageResourcesFactory
- All Implemented Interfaces:
- java.io.Serializable
public class MapMessageResourcesFactory
- extends org.apache.struts.util.MessageResourcesFactory
Factory for MapMessageResources
.
If you want this factory to be the default
factory used in your actions in the tests,
you should call
MessageResourcesFactory.setFactoryClass("com.mockrunner.struts.MapMessageResourcesFactory")
- See Also:
- Serialized Form
Fields inherited from class org.apache.struts.util.MessageResourcesFactory |
clazz, config, factoryClass, returnNull |
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 |
MapMessageResourcesFactory
public MapMessageResourcesFactory()
setMessageMap
public static void setMessageMap(java.util.Map messages)
- Sets the messages
Map
for returned
MapMessageResources
objects.
- Parameters:
messages
- the message Map
createResources
public org.apache.struts.util.MessageResources createResources(java.lang.String config)
- Specified by:
createResources
in class org.apache.struts.util.MessageResourcesFactory