|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.util.MessageResourcesFactory
com.mockrunner.struts.MapMessageResourcesFactory
public class MapMessageResourcesFactory
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")
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 |
---|
public MapMessageResourcesFactory()
Method Detail |
---|
public static void setMessageMap(java.util.Map messages)
Map
for returned
MapMessageResources
objects.
messages
- the message Map
public org.apache.struts.util.MessageResources createResources(java.lang.String config)
createResources
in class org.apache.struts.util.MessageResourcesFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |