org.apache.struts.util
クラス MessageResourcesFactory

java.lang.Object
  拡張org.apache.struts.util.MessageResourcesFactory
すべての実装インタフェース:
java.io.Serializable
直系の既知のサブクラス:
PropertyMessageResourcesFactory

public abstract class MessageResourcesFactory
extends java.lang.Object
implements java.io.Serializable

Factory for MessageResources instances. The general usage pattern for this class is:

バージョン:
$Revision: 1.1 $ $Date: 2004/10/20 03:26:41 $
関連項目:
直列化された形式

フィールドの概要
protected static java.lang.Class clazz
          The Java class to be used for MessageResourcesFactory instances.
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.
 
コンストラクタの概要
MessageResourcesFactory()
           
 
メソッドの概要
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.
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.
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.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

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 MessageResourcesFactory instances.


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 MessageResourcesFactory instances.

コンストラクタの詳細

MessageResourcesFactory

public MessageResourcesFactory()
メソッドの詳細

getReturnNull

public boolean getReturnNull()
Get default value of the "returnNull" property used to initialize newly created MessageResourcess.

戻り値:
default value of the "returnNull" property newly created MessageResourcess are initialized to.

setReturnNull

public void setReturnNull(boolean returnNull)
Set the default value of the "returnNull" property newly created MessageResourcess are initialized to.

パラメータ:
returnNull - default value of the "returnNull" 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.

パラメータ:
config - Configuration parameter(s) for the requested bundle

getFactoryClass

public static java.lang.String getFactoryClass()
The fully qualified class name that is used for MessageResourcesFactory instances.

戻り値:
class name that is used for MessageResourcesFactory instances

setFactoryClass

public static void setFactoryClass(java.lang.String factoryClass)
Set the fully qualified class name that is used for MessageResourcesFactory instances.

パラメータ:
factoryClass - name that is used for MessageResourcesFactory instances

createFactory

public static MessageResourcesFactory createFactory()
Create and return a 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.



このドキュメントは、Ja-Jakartaにより訳されました。コメントがある場合は、report@jajakarta.orgまでお願いします。
Copyright (C) 2000-2004 - Apache Software Foundation