org.apache.commons.logging.impl
クラス Log4jFactory

java.lang.Object
  拡張org.apache.commons.logging.LogFactory
      拡張org.apache.commons.logging.impl.Log4jFactory

推奨されていません。 COMMONS-DEV での検討の結果、裏で使用されるプロキシファクトリであるこのクラスは 削除されることになりました。 バージョン1.0ではこのクラスに処理をさせることはできますが、 実際にはそれは有用ではありません。 また、バージョン1.1では削除される予定です。
Per discussion on COMMONS-DEV, the behind-the-scenes use of this class as a proxy factory has been removed. For 1.0, you can still request it directly if you wish, but it doesn't really do anything useful, and will be removed in 1.1.

public final class Log4jFactory
extends LogFactory

Concrete subclass of LogFactory specific to log4j.

作成者:
Costin Manolache
翻訳状況:
見送り

フィールドの概要
private  Hashtable attributes
          推奨されていません。 The configuration attributes for this LogFactory.
private  Hashtable instances
          推奨されていません。  
 
クラス org.apache.commons.logging.LogFactory から継承したフィールド
factories, FACTORY_DEFAULT, FACTORY_PROPERTIES, FACTORY_PROPERTY, SERVICE_ID
 
コンストラクタの概要
Log4jFactory()
          推奨されていません。  
 
メソッドの概要
 Object getAttribute(String name)
          推奨されていません。 Return the configuration attribute with the specified name (if any), or null if there is no such attribute.
 String[] getAttributeNames()
          推奨されていません。 Return an array containing the names of all currently defined configuration attributes.
 Log getInstance(Class clazz)
          推奨されていません。 Convenience method to derive a name from the specified class and call getInstance(String) with it.
 Log getInstance(String name)
          推奨されていません。 現在のファクトリに設定されている属性を使用して Log インスタンスを(必要ならば生成して)返します。
 void release()
          推奨されていません。 Release any internal references to previously created Log instances returned by this factory.
 void removeAttribute(String name)
          推奨されていません。 Remove any configuration attribute associated with the specified name.
 void setAttribute(String name, Object value)
          推奨されていません。 Set the configuration attribute with the specified name.
 
クラス org.apache.commons.logging.LogFactory から継承したメソッド
getContextClassLoader, getFactory, getLog, getLog, newFactory, release, releaseAll
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

attributes

private Hashtable attributes
推奨されていません。 
The configuration attributes for this LogFactory.


instances

private Hashtable instances
推奨されていません。 
コンストラクタの詳細

Log4jFactory

public Log4jFactory()
推奨されていません。 
メソッドの詳細

getAttribute

public Object getAttribute(String name)
推奨されていません。 
Return the configuration attribute with the specified name (if any), or null if there is no such attribute.

定義:
クラス LogFactory 内の getAttribute
パラメータ:
name - Name of the attribute to return

getAttributeNames

public String[] getAttributeNames()
推奨されていません。 
Return an array containing the names of all currently defined configuration attributes. If there are no such attributes, a zero length array is returned.

定義:
クラス LogFactory 内の getAttributeNames

getInstance

public Log getInstance(Class clazz)
                throws LogConfigurationException
推奨されていません。 
Convenience method to derive a name from the specified class and call getInstance(String) with it.

定義:
クラス LogFactory 内の getInstance
パラメータ:
clazz - Class for which a suitable Log name will be derived
例外:
LogConfigurationException - if a suitable Log instance cannot be returned

getInstance

public Log getInstance(String name)
                throws LogConfigurationException
推奨されていません。 
クラス LogFactory の記述:

現在のファクトリに設定されている属性を使用して Log インスタンスを(必要ならば生成して)返します。

Construct (if necessary) and return a Log instance, using the factory's current set of configuration attributes.

- 返される Log インスタンスが現在のアプリケーション固有のものであるかどうか、 また同じ名称を引数にこのメソッドを複数回呼んだ場合に同じインスタンスが返されるかどうかは使用している LogFactory に依存します。

NOTE - Depending upon the implementation of the LogFactory you are using, the Log instance you are returned may or may not be local to the current application, and may or may not be returned again on a subsequent call with the same name argument.

定義:
クラス LogFactory 内の getInstance
パラメータ:
name - 返される Log インスタンスの論理名 (名称の意味はラップされる内部のログ処理実装だけが知っています)
Logical name of the Log instance to be returned (the meaning of this name is only known to the underlying logging implementation that is being wrapped)
例外:
LogConfigurationException - 適切な Log インスタンスを返せなかった場合
if a suitable Log instance cannot be returned

release

public void release()
推奨されていません。 
Release any internal references to previously created Log instances returned by this factory. This is useful environments like servlet containers, which implement application reloading by throwing away a ClassLoader. Dangling references to objects in that class loader would prevent garbage collection.

定義:
クラス LogFactory 内の release

removeAttribute

public void removeAttribute(String name)
推奨されていません。 
Remove any configuration attribute associated with the specified name. If there is no such attribute, no action is taken.

定義:
クラス LogFactory 内の removeAttribute
パラメータ:
name - Name of the attribute to remove

setAttribute

public void setAttribute(String name,
                         Object value)
推奨されていません。 
Set the configuration attribute with the specified name. Calling this with a null value is equivalent to calling removeAttribute(name).

定義:
クラス LogFactory 内の setAttribute
パラメータ:
name - Name of the attribute to set
value - Value of the attribute to set, or null to remove any setting for this attribute


このドキュメントは、Ja-Jakartaにより訳されました。 コメントがある場合は report@jajakarta.orgまでお願いします。
Translated into Japanese by jajakarta.org. The original page is here.
Copyright (c) 2002-2003 - Apache Software Foundation