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

フィールドの概要
 
クラス org.springframework.beans.factory.config.AbstractFactoryBean から継承されたフィールド
logger
 
コンストラクタの概要
XMLMailFactoryBean()
          コンストラクタ。
 
メソッドの概要
protected  Object createInstance()
           
 String getClassPath()
           
 String getFilePath()
           
 Resource getLocation()
           
 Class getObjectType()
           
 void setClassPath(String classPath)
           
 void setFilePath(String filePath)
           
 void setLocation(Resource location)
           
 void setMailBuilder(MailBuilder mailBuilder)
          MailBuilderインターフェースの実装クラスのインスタンスをセットします。
 
クラス org.springframework.beans.factory.config.AbstractFactoryBean から継承されたメソッド
afterPropertiesSet, getObject, isSingleton, setSingleton
 
クラス 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.