org.apache.commons.dbcp
クラス BasicDataSourceFactory
java.lang.Object
org.apache.commons.dbcp.BasicDataSourceFactory
- すべての実装インタフェース:
- ObjectFactory
- public class BasicDataSourceFactory
- extends Object
- implements ObjectFactory
指定された Reference の RefAddr
の値(これは BasicDataSource の bean プロパティと一致する必要があります)に基づいて設定された
BasicDataSource のインスタンスを生成する
JNDI オブジェクトファクトリです。
JNDI object factory that creates an instance of
BasicDataSource that has been configured based on the
RefAddr values of the specified Reference,
which must match the names and data types of the
BasicDataSource bean properties.
- バージョン:
- $Revision: 1.1.1.1 $ $Date: 2004/02/13 10:02:03 $
- 作成者:
- Craig R. McClanahan
- 翻訳者:
- 日置 聡
- 翻訳状況:
- 初稿(校正者募集中)
- 翻訳更新日:
- 2003/09/13
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicDataSourceFactory
public BasicDataSourceFactory()
getObjectInstance
public Object getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable environment)
throws Exception
新たな BasicDataSource を生成し、返します。
新たなインスタンスが生成できなかった場合には代わりに null を返します。
Create and return a new BasicDataSource instance. If no
instance can be created, return null instead.
- 定義:
- インタフェース
ObjectFactory 内の getObjectInstance
- パラメータ:
obj - オブジェクトの生成に使用することのできる位置情報または参照情報をもつオブジェクト、null を許容します
The possibly null object containing location or
reference information that can be used in creating an object
name - nameCtx に関連するこのオブジェクトの名前
The name of this object relative to nameCtx
nameCtx - name パラメータの指定に関連するコンテキスト、
または name がデフォルトの初期コンテキストに関連する場合には null
The context relative to which the name
parameter is specified, or null if name
is relative to the default initial context
environment - このオブジェクトの生成に使用される環境、null を許容します
creating this object
The possibly null environment that is used in
creating this object
- 例外:
Exception - インスタンス生成時に例外が発生した場合
if an exception occurs creating the instance
このドキュメントは、Ja-Jakartaにより訳されました。 コメントがある場合は report@jajakarta.orgまでお願いします。
Translated into Japanese by jajakarta.org. The original page is here.
Copyright (c) 2002-2003 - Apache Software Foundation