com.mockrunner.struts
Class MapMessageResourcesFactory

java.lang.Object
  extended by org.apache.struts.util.MessageResourcesFactory
      extended by 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

Field Summary
 
Fields inherited from class org.apache.struts.util.MessageResourcesFactory
clazz, config, factoryClass, returnNull
 
Constructor Summary
MapMessageResourcesFactory()
           
 
Method Summary
 org.apache.struts.util.MessageResources createResources(java.lang.String config)
           
static void setMessageMap(java.util.Map messages)
          Sets the messages Map for returned MapMessageResources objects.
 
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
 

Constructor Detail

MapMessageResourcesFactory

public MapMessageResourcesFactory()
Method Detail

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