|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.apache.commons.logging.LogFactory
org.apache.commons.logging.impl.Log4jFactory
Concrete subclass of LogFactory specific to log4j.
| フィールドの概要 | |
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 |
| フィールドの詳細 |
private Hashtable attributes
LogFactory.
private Hashtable instances
| コンストラクタの詳細 |
public Log4jFactory()
| メソッドの詳細 |
public Object getAttribute(String name)
null if there is no such attribute.
LogFactory 内の getAttributename - Name of the attribute to returnpublic String[] getAttributeNames()
LogFactory 内の getAttributeNames
public Log getInstance(Class clazz)
throws LogConfigurationException
getInstance(String) with it.
LogFactory 内の getInstanceclazz - Class for which a suitable Log name will be derived
LogConfigurationException - if a suitable Log
instance cannot be returned
public Log getInstance(String name)
throws LogConfigurationException
LogFactory の記述: 現在のファクトリに設定されている属性を使用して
Log インスタンスを(必要ならば生成して)返します。
Log instance,
using the factory's current set of configuration attributes.注 - 返される Log インスタンスが現在のアプリケーション固有のものであるかどうか、
また同じ名称を引数にこのメソッドを複数回呼んだ場合に同じインスタンスが返されるかどうかは使用している
LogFactory に依存します。
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 内の getInstancename - 返される Log インスタンスの論理名
(名称の意味はラップされる内部のログ処理実装だけが知っています)
Log instance to be
returned (the meaning of this name is only known to the underlying
logging implementation that is being wrapped)LogConfigurationException - 適切な Log
インスタンスを返せなかった場合
Log instance cannot be returnedpublic void release()
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 内の releasepublic void removeAttribute(String name)
LogFactory 内の removeAttributename - Name of the attribute to remove
public void setAttribute(String name,
Object value)
null value is equivalent to calling
removeAttribute(name).
LogFactory 内の setAttributename - Name of the attribute to setvalue - Value of the attribute to set, or null
to remove any setting for this attribute
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||