public abstract class MessageResourcesFactory extends Object implements Serializable
MessageResources
instances. The general usage
pattern for this class is:
MessageResourcesFactory().createFactory()
to retrieve
a MessageResourcesFactory
instance.MessageResources
instances with desired characteristics.createResources()
method of the factory to
retrieve a newly instantiated MessageResources
instance.Modifier and Type | Field and Description |
---|---|
protected static Class |
clazz
The Java class to be used for
MessageResourcesFactory
instances. |
protected MessageResourcesConfig |
config
Configuration information for Message Resources.
|
protected static String |
factoryClass
The fully qualified class name to be used for
MessageResourcesFactory
instances. |
protected boolean |
returnNull
The "return null" property value to which newly created
MessageResourcess should be initialized.
|
Constructor and Description |
---|
MessageResourcesFactory() |
Modifier and Type | Method and Description |
---|---|
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(String config)
Create and return a newly instansiated
MessageResources . |
MessageResourcesConfig |
getConfig()
Set the configuration information for Message Resources.
|
static 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(MessageResourcesConfig config)
Return the configuration information for Message Resources.
|
static void |
setFactoryClass(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.
|
protected static transient Class clazz
MessageResourcesFactory
instances.protected static String factoryClass
MessageResourcesFactory
instances.protected MessageResourcesConfig config
protected boolean returnNull
public MessageResourcesConfig getConfig()
public void setConfig(MessageResourcesConfig config)
public boolean getReturnNull()
public void setReturnNull(boolean returnNull)
returnNull
- default value of the "returnNull" MessageResourcess
are initialized to.public abstract MessageResources createResources(String config)
MessageResources
.
This method must be implemented by concrete subclasses.config
- Configuration parameter(s) for the requested bundlepublic static String getFactoryClass()
MessageResourcesFactory
instances.MessageResourcesFactory
instancespublic static void setFactoryClass(String factoryClass)
MessageResourcesFactory
instances.factoryClass
- name that is used for MessageResourcesFactory
instancespublic static MessageResourcesFactory createFactory()
MessageResourcesFactory
instance of
the appropriate class, which can be used to create customized
MessageResources
instances. If no such factory can be
created, return null
instead.Copyright © 2000–2016 Apache Software Foundation. All rights reserved.