クラス PrototypeTargetSource
java.lang.ObjectSE
org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
org.springframework.aop.target.AbstractPrototypeBasedTargetSource
org.springframework.aop.target.PrototypeTargetSource
- 実装されたすべてのインターフェース:
SerializableSE
、TargetClassAware
、TargetSource
、Aware
、BeanFactoryAware
リクエストごとにターゲット Bean の新しいインスタンスを作成し、リリース時に各リクエストを破棄する
TargetSource
実装。 含まれている BeanFactory
から Bean インスタンスを取得します。
フィールドサマリー
クラス org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource から継承されたフィールド
logger
コンストラクターのサマリー
方法の概要
クラス org.springframework.aop.target.AbstractPrototypeBasedTargetSource から継承されたメソッド
destroyPrototypeInstance, newPrototypeInstance, setBeanFactory, writeReplace
クラス org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource から継承されたメソッド
copyFrom, equals, getBeanFactory, getTargetBeanName, getTargetClass, hashCode, setTargetBeanName, setTargetClass
クラス java.lang.ObjectSE から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, wait, waitSE, waitSE
インターフェース org.springframework.aop.TargetSource から継承されたメソッド
isStatic
コンストラクターの詳細
PrototypeTargetSource
public PrototypeTargetSource()
メソッドの詳細
getTarget
呼び出しごとに新しいプロトタイプインスタンスを取得します。- 戻り値:
- ジョインポイントを含むターゲットオブジェクト、または実際のターゲットインスタンスがない場合は
null
- 例外:
BeansException
- 関連事項:
releaseTarget
指定された独立したインスタンスを破棄します。- パラメーター:
target
-TargetSource.getTarget()
の呼び出しから取得したオブジェクト- 関連事項:
toString
- オーバーライド:
- クラス
AbstractBeanFactoryBasedTargetSource
のtoString