|
|||||||||
| Home >> All >> org >> apache >> struts >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.struts.util
Class MessageResourcesFactory

java.lang.Objectorg.apache.struts.util.MessageResourcesFactory
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- PropertyMessageResourcesFactory
- public abstract class MessageResourcesFactory
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
Factory for MessageResources instances. The general usage
pattern for this class is:
- Call
MessageResourcesFactory().createFactory()to retrieve aMessageResourcesFactoryinstance. - Set properties as required to configure this factory instance to create
MessageResourcesinstances with desired characteristics. - Call the
createResources()method of the factory to retrieve a newly instantiatedMessageResourcesinstance.
- Version:
- $Rev: 264684 $ $Date: 2005-08-30 04:08:01 +0100 (Tue, 30 Aug 2005) $
| Field Summary | |
protected static java.lang.Class |
clazz
The Java class to be used for MessageResourcesFactory instances. |
protected org.apache.struts.config.MessageResourcesConfig |
config
Configuration information for Message Resources. |
protected static java.lang.String |
factoryClass
The fully qualified class name to be used for MessageResourcesFactory instances. |
private static org.apache.commons.logging.Log |
LOG
Commons Logging instance. |
protected boolean |
returnNull
The "return null" property value to which newly created MessageResourcess should be initialized. |
| Constructor Summary | |
MessageResourcesFactory()
|
|
| Method Summary | |
static MessageResourcesFactory |
createFactory()
Create and return a MessageResourcesFactory instance of the
appropriate class, which can be used to create customized
MessageResources instances. |
abstract MessageResources |
createResources(java.lang.String config)
Create and return a newly instansiated MessageResources. |
org.apache.struts.config.MessageResourcesConfig |
getConfig()
Set the configuration information for Message Resources. |
static java.lang.String |
getFactoryClass()
The fully qualified class name that is used for MessageResourcesFactory instances. |
boolean |
getReturnNull()
Get default value of the "returnNull" property used to initialize newly created MessageResourcess. |
void |
setConfig(org.apache.struts.config.MessageResourcesConfig config)
Return the configuration information for Message Resources. |
static void |
setFactoryClass(java.lang.String factoryClass)
Set the fully qualified class name that is used for MessageResourcesFactory instances. |
void |
setReturnNull(boolean returnNull)
Set the default value of the "returnNull" property newly created MessageResourcess are initialized to. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
config
protected org.apache.struts.config.MessageResourcesConfig config
- Configuration information for Message Resources.
returnNull
protected boolean returnNull
- The "return null" property value to which newly created
MessageResourcess should be initialized.
clazz
protected static transient java.lang.Class clazz
- The Java class to be used for
MessageResourcesFactoryinstances.
LOG
private static org.apache.commons.logging.Log LOG
- Commons Logging instance.
factoryClass
protected static java.lang.String factoryClass
- The fully qualified class name to be used for
MessageResourcesFactoryinstances.
| Constructor Detail |
MessageResourcesFactory
public MessageResourcesFactory()
| Method Detail |
getConfig
public org.apache.struts.config.MessageResourcesConfig getConfig()
- Set the configuration information for Message Resources.
- Since:
- Struts 1.2.8
setConfig
public void setConfig(org.apache.struts.config.MessageResourcesConfig config)
- Return the configuration information for Message Resources.
- Since:
- Struts 1.2.8
getReturnNull
public boolean getReturnNull()
- Get default value of the "returnNull" property used to initialize newly created
MessageResourcess.
setReturnNull
public void setReturnNull(boolean returnNull)
- Set the default value of the "returnNull" property newly created
MessageResourcess are initialized to.
createResources
public abstract MessageResources createResources(java.lang.String config)
- Create and return a newly instansiated
MessageResources. This method must be implemented by concrete subclasses.
getFactoryClass
public static java.lang.String getFactoryClass()
- The fully qualified class name that is used for
MessageResourcesFactoryinstances.
setFactoryClass
public static void setFactoryClass(java.lang.String factoryClass)
- Set the fully qualified class name that is used for
MessageResourcesFactoryinstances.
createFactory
public static MessageResourcesFactory createFactory()
- Create and return a
MessageResourcesFactoryinstance of the appropriate class, which can be used to create customizedMessageResourcesinstances. If no such factory can be created, returnnullinstead.
|
|||||||||
| Home >> All >> org >> apache >> struts >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.struts.util.MessageResourcesFactory