com.ozacc.mail.spring
クラス XMLMailFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean
com.ozacc.mail.spring.XMLMailFactoryBean
- すべての実装されたインタフェース:
- FactoryBean, InitializingBean
public class XMLMailFactoryBean
- extends AbstractFactoryBean
Springの設定ファイルで指定されたロケーションのXMLファイルからMailインスタンスを生成するFactoryBean。
デフォルトでは、singletonプロパティはfalseに設定されます。
location、classPath、filePathの順で、一番先にセットされているプロパティ値がXMLファイルのパスとして使われます。
- 導入されたバージョン:
- 1.0
- バージョン:
- $Id: XMLMailFactoryBean.java,v 1.4 2004/09/13 19:48:16 otsuka Exp $
- 作成者:
- Tomohiro Otsuka
- 関連項目:
XMLMailBuilderImpl
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLMailFactoryBean
public XMLMailFactoryBean()
- コンストラクタ。
createInstance
protected Object createInstance()
throws Exception
- 定義:
- クラス
AbstractFactoryBean
内の createInstance
- 例外:
Exception
- 関連項目:
AbstractFactoryBean.createInstance()
getObjectType
public Class getObjectType()
- 関連項目:
FactoryBean.getObjectType()
setMailBuilder
public void setMailBuilder(MailBuilder mailBuilder)
MailBuilder
インターフェースの実装クラスのインスタンスをセットします。
デフォルトでは、XMLMailBuilderImpl
が使用されます。
ただし、ここでセットしない場合は、XMLMailFactoryBean
ひとつに付き、
XMLMailBuilderImpl
インスタンス一つが保持されます。
シングルトンのMailBuilder
インスタンスをセットすることを推奨します。
- パラメータ:
mailBuilder
- MailBuilderインスタンス
getClassPath
public String getClassPath()
- 戻り値:
- Returns the classPath.
setClassPath
public void setClassPath(String classPath)
- パラメータ:
classPath
- The classPath to set.
getFilePath
public String getFilePath()
- 戻り値:
- Returns the filePath.
setFilePath
public void setFilePath(String filePath)
- パラメータ:
filePath
- The filePath to set.
getLocation
public Resource getLocation()
- 戻り値:
- Returns the location.
setLocation
public void setLocation(Resource location)
- パラメータ:
location
- The location to set.
Copyright © 2004-2006 OZACC. All Rights Reserved.