インターフェースの使用
org.springframework.aop.TargetSource
TargetSource を使用するパッケージ
パッケージ
説明
AOP アライアンスインターフェースに準拠した Spring の基本的な AOP インフラストラクチャを含むパッケージ。
ApplicationContexts で使用する Bean ポストプロセッサー。ProxyFactoryBean を使用せずに AOP プロキシを自動的に作成することにより、AOP の使用を簡素化します。
Spring の AOP 自動プロキシサポートで使用するためのさまざまな
TargetSourceCreator 実装。Spring AOP で使用するためのさまざまな
TargetSource 実装。Spring AOP で使用するための動的でリフレッシュ可能な
TargetSource 実装のサポート。 このパッケージのクラスを使用すると、JNDI が使いやすくなり、JNDI に格納されている構成へのアクセスが容易になり、JNDI アクセスクラスに便利なスーパークラスが提供されます。
Spring のスクリプトパッケージのサポートクラス。
org.springframework.aop.framework 内の TargetSource 使用
TargetSource として宣言されている org.springframework.aop.framework のフィールド修飾子と型フィールド説明static final TargetSourceAdvisedSupport.EMPTY_TARGET_SOURCEターゲットが存在せず、動作がアドバイザによって提供される場合の正規の TargetSource。修飾子と型メソッド説明protected TargetSourceAbstractSingletonProxyFactoryBean.createTargetSource(ObjectSE target) 指定されたターゲット(または TargetSource)の TargetSource を決定します。Advised.getTargetSource()このAdvisedオブジェクトによって使用されるTargetSourceを返します。AdvisedSupport.getTargetSource()型 TargetSource のパラメーターを持つ org.springframework.aop.framework のメソッド修飾子と型メソッド説明protected voidAdvisedSupport.copyConfigurationFrom(AdvisedSupport other, TargetSource targetSource, ListSE<Advisor> advisors) 指定されたAdvisedSupportオブジェクトから AOP 構成をコピーしますが、新しいTargetSourceと指定されたインターセプターチェーンの置換を許可します。static <T> TProxyFactory.getProxy(ClassSE<T> proxyInterface, TargetSource targetSource) 指定されたTargetSourceのプロキシを作成し、指定されたインターフェースを実装します。static ObjectSEProxyFactory.getProxy(TargetSource targetSource) TargetSourceのターゲットクラスを継承する、指定されたTargetSourceのプロキシを作成します。voidAdvised.setTargetSource(TargetSource targetSource) このAdvisedオブジェクトで使用されるTargetSourceを変更します。voidAdvisedSupport.setTargetSource(@Nullable TargetSource targetSource) 型 TargetSource のパラメーターを持つ org.springframework.aop.framework のコンストラクター修飾子コンストラクター説明ProxyFactory(ClassSE<?> proxyInterface, TargetSource targetSource) 指定されたTargetSourceの ProxyFactory を作成し、指定されたインターフェースをプロキシに実装させます。org.springframework.aop.framework.autoproxy 内の TargetSource 使用
修飾子と型メソッド説明protected @Nullable TargetSourceAbstractAutoProxyCreator.getCustomTargetSource(ClassSE<?> beanClass, StringSE beanName) Bean インスタンスのターゲットソースを作成します。protected @Nullable TargetSourceBeanNameAutoProxyCreator.getCustomTargetSource(ClassSE<?> beanClass, StringSE beanName) Bean 名がサポートされている名前の構成済みリスト内の名前の 1 つと一致する場合は、AbstractAutoProxyCreator.getCustomTargetSource(Class, String)に委譲し、そうでない場合はnullを返します。TargetSourceCreator.getTargetSource(ClassSE<?> beanClass, StringSE beanName) 指定された Bean に特別な TargetSource を作成します(存在する場合)。型 TargetSource のパラメーターを持つ org.springframework.aop.framework.autoproxy のメソッド修飾子と型メソッド説明protected ObjectSEAbstractAutoProxyCreator.createProxy(ClassSE<?> beanClass, @Nullable StringSE beanName, ObjectSE @Nullable [] specificInterceptors, TargetSource targetSource) 指定された Bean の AOP プロキシを作成します。AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(ClassSE<?> beanClass, StringSE beanName, @Nullable TargetSource targetSource) AbstractAutoProxyCreator.getAdvicesAndAdvisorsForBean(ClassSE<?> beanClass, StringSE beanName, @Nullable TargetSource customTargetSource) 指定された Bean がプロキシされるかどうか、および適用する追加のアドバイス (たとえば、AOP Alliance インターセプター) とアドバイザーを返します。BeanNameAutoProxyCreator.getAdvicesAndAdvisorsForBean(ClassSE<?> beanClass, StringSE beanName, @Nullable TargetSource targetSource) Bean 名が、サポートされている名前の構成済みリストにある名前の 1 つと一致する場合は、プロキシする Bean として識別します。org.springframework.aop.framework.autoproxy.target 内の TargetSource 使用
修飾子と型メソッド説明final @Nullable TargetSourceAbstractBeanFactoryBasedTargetSourceCreator.getTargetSource(ClassSE<?> beanClass, StringSE beanName) org.springframework.aop.target 内の TargetSource 使用
TargetSource を実装している org.springframework.aop.target のクラス修飾子と型クラス説明classSpringBeanFactoryに基づき、Spring が管理する Bean インスタンスに委譲するTargetSource実装の基本クラス。classユーザー管理オブジェクトを遅延作成するTargetSource実装。classターゲットインスタンスのプールを維持するTargetSource実装をプールし、メソッドを呼び出すたびにプールからターゲットオブジェクトを取得および解放するための抽象基本クラス。classプーリングまたは new-instance-per-invocation 戦略をサポートする新しいプロトタイプ Bean インスタンスを作成する動的TargetSource実装の基本クラス。class構成可能な Apache Commons2 プールにオブジェクトを保持するTargetSource実装。final classターゲットが存在しない(またはターゲットクラスのみが既知である)場合の正規のTargetSource。動作は、インターフェースとアドバイザのみによって提供されます。classローカルターゲットオブジェクトをキャッシュしますが、アプリケーションの実行中にターゲットをスワップできるTargetSource実装。classBeanFactoryからシングルトン Bean に遅延アクセスするTargetSource。classリクエストごとにターゲット Bean の新しいインスタンスを作成し、リリース時に各リクエストを破棄するTargetSource実装。class単純なTargetSource実装。これを含む SpringBeanFactoryから指定されたターゲット Bean を新たに取得します。class指定されたオブジェクトを保持するTargetSourceインターフェースの実装。classオブジェクトプールの代替。org.springframework.aop.target.dynamic 内の TargetSource 使用
TargetSource を実装している org.springframework.aop.target.dynamic のクラス修飾子と型クラス説明classリフレッシュ可能なターゲットオブジェクトをラップする抽象TargetSource実装。classBeanFactory から新しいターゲット Bean をフェッチするリフレッシュ可能な TargetSource。org.springframework.jndi 内の TargetSource 使用
TargetSource を実装している org.springframework.jndi のクラスorg.springframework.scripting.support 内の TargetSource 使用
TargetSource を実装している org.springframework.scripting.support のクラス修飾子と型クラス説明class指定されたScriptFactoryを通じてリフレッシュが必要かどうかを決定するBeanFactoryRefreshableTargetSourceのサブクラス。型 TargetSource のパラメーターを持つ org.springframework.scripting.support のメソッド修飾子と型メソッド説明protected ObjectSEScriptFactoryPostProcessor.createRefreshableProxy(TargetSource ts, ClassSE<?> @Nullable [] interfaces, boolean proxyTargetClass) 指定された AOP TargetSource のリフレッシュ可能なプロキシを作成します。