org.unitedfront2.domain
クラス SpringBeanDomainFactory

java.lang.Object
  上位を拡張 org.unitedfront2.domain.SpringBeanDomainFactory
すべての実装されたインタフェース:
ApplicationContextAware, DomainFactory

public class SpringBeanDomainFactory
extends Object
implements DomainFactory, ApplicationContextAware

DomainFactory の Spring Framework DI コンテナ実装です。

作成者:
kurokkie

フィールドの概要
protected  Log logger
          ログ
 
コンストラクタの概要
SpringBeanDomainFactory()
           
 
メソッドの概要
<D extends Domain>
D
prototype(Class<D> domainClass)
          ドメインオブジェクトが動作するために必須となるいくつかの非永続プロパティに値が設定された後の、新しい ドメインオブジェクトを返します。
<D extends Domain>
D
prototype(D domainObject)
          ${domainObject} の非永続化プロパティも複製先ドメインオブジェクトにコピーされる点に注意してくださ い。
 void setApplicationContext(ApplicationContext applicationContext)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

logger

protected final Log logger
ログ

コンストラクタの詳細

SpringBeanDomainFactory

public SpringBeanDomainFactory()
メソッドの詳細

prototype

public <D extends Domain> D prototype(Class<D> domainClass)
インタフェース DomainFactory の記述:
ドメインオブジェクトが動作するために必須となるいくつかの非永続プロパティに値が設定された後の、新しい ドメインオブジェクトを返します。非永続プロパティとは、transient で修飾されたプロ パティです。

定義:
インタフェース DomainFactory 内の prototype
戻り値:
ドメインオブジェクトのプロトタイプ

prototype

public <D extends Domain> D prototype(D domainObject)
${domainObject} の非永続化プロパティも複製先ドメインオブジェクトにコピーされる点に注意してくださ い。

定義:
インタフェース DomainFactory 内の prototype
パラメータ:
domainObject - コピー元のドメインオブジェクト
戻り値:
コピー元のドメインオブジェクトが持つプロパティの値が設定された、ドメインオブジェクトのプロトタ イプ

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
定義:
インタフェース ApplicationContextAware 内の setApplicationContext
例外:
BeansException


Copyright © 2007-2008 www.unitedfront2.org. All Rights Reserved.