public class ProxyFactory extends ProxyCreatorSupport
EMPTY_TARGET_SOURCE| コンストラクターと説明 |
|---|
ProxyFactory() 新しい ProxyFactory を作成します。 |
ProxyFactory(java.lang.Class<?>... proxyInterfaces) 新しい ProxyFactory を作成します。 |
ProxyFactory(java.lang.Class<?> proxyInterface, Interceptor interceptor) 指定されたインターフェースおよびインターセプター用に新しい ProxyFactory を作成します。 |
ProxyFactory(java.lang.Class<?> proxyInterface, TargetSource targetSource) 指定された TargetSource の ProxyFactory を作成し、指定されたインターフェースをプロキシに実装させます。 |
ProxyFactory(java.lang.Object target) 新しい ProxyFactory を作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
java.lang.Object | getProxy() このファクトリの設定に従って新しいプロキシを作成します。 |
static <T> T | getProxy(java.lang.Class<T> proxyInterface, Interceptor interceptor) 指定されたインターフェースとインターセプターの新しいプロキシを作成します。 |
static <T> T | getProxy(java.lang.Class<T> proxyInterface, TargetSource targetSource) 指定された TargetSource のプロキシを作成し、指定されたインターフェースを実装します。 |
java.lang.Object | getProxy(java.lang.ClassLoader classLoader) このファクトリの設定に従って新しいプロキシを作成します。 |
static java.lang.Object | getProxy(TargetSource targetSource)TargetSource のターゲットクラスを継承する、指定された TargetSource のプロキシを作成します。 |
addListener, adviceChanged, createAopProxy, getAopProxyFactory, isActive, removeListener, setAopProxyFactoryaddAdvice, addAdvice, addAdvisor, addAdvisor, addAdvisors, addAdvisors, addInterface, adviceIncluded, copyConfigurationFrom, copyConfigurationFrom, countAdvicesOfType, getAdvisorChainFactory, getAdvisors, getAdvisorsInternal, getInterceptorsAndDynamicInterceptionAdvice, getProxiedInterfaces, getTargetClass, getTargetSource, indexOf, indexOf, isInterfaceProxied, isPreFiltered, removeAdvice, removeAdvisor, removeAdvisor, removeInterface, replaceAdvisor, setAdvisorChainFactory, setInterfaces, setPreFiltered, setTarget, setTargetClass, setTargetSource, toProxyConfigString, toString, updateAdvisorArraycopyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClassclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisExposeProxy, isFrozen, isProxyTargetClass, setExposeProxypublic ProxyFactory()
public ProxyFactory(java.lang.Object target)
指定されたターゲットが実装するすべてのインターフェースをプロキシします。
target - プロキシされるターゲットオブジェクト public ProxyFactory(java.lang.Class<?>... proxyInterfaces)
ターゲットなし、インターフェースのみ。インターセプターを追加する必要があります。
proxyInterfaces - プロキシが実装するインターフェース public ProxyFactory(java.lang.Class<?> proxyInterface,
Interceptor interceptor)リモーティングプロキシの場合のように、インターセプターがターゲットに委譲するのではなく、すべての呼び出し自体を処理すると仮定して、単一インターセプターのプロキシを作成するための便利なメソッド。
proxyInterface - プロキシが実装するインターフェース interceptor - プロキシが呼び出すインターセプター public ProxyFactory(java.lang.Class<?> proxyInterface,
TargetSource targetSource)TargetSource の ProxyFactory を作成し、指定されたインターフェースをプロキシに実装させます。proxyInterface - プロキシが実装するインターフェース targetSource - プロキシが呼び出す TargetSourcepublic java.lang.Object getProxy()
繰り返し呼び出すことができます。インターフェースを追加または削除した場合、効果は異なります。インターセプターを追加および削除できます。
デフォルトのクラスローダーを使用します: 通常、スレッドコンテキストクラスローダー(プロキシ作成に必要な場合)。
public java.lang.Object getProxy(@Nullable java.lang.ClassLoader classLoader)
繰り返し呼び出すことができます。インターフェースを追加または削除した場合、効果は異なります。インターセプターを追加および削除できます。
指定されたクラスローダーを使用します(プロキシ作成に必要な場合)。
classLoader - プロキシを作成するクラスローダー (または、低レベルプロキシ機能のデフォルトの場合は null )public static <T> T getProxy(java.lang.Class<T> proxyInterface,
Interceptor interceptor)リモーティングプロキシの場合のように、インターセプターがターゲットに委譲するのではなく、すべての呼び出し自体を処理すると仮定して、単一インターセプターのプロキシを作成するための便利なメソッド。
proxyInterface - プロキシが実装するインターフェース interceptor - プロキシが呼び出すインターセプター ProxyFactory(Class, org.aopalliance.intercept.Interceptor)public static <T> T getProxy(java.lang.Class<T> proxyInterface,
TargetSource targetSource)TargetSource のプロキシを作成し、指定されたインターフェースを実装します。proxyInterface - プロキシが実装するインターフェース targetSource - プロキシが呼び出す TargetSourceProxyFactory(Class, org.springframework.aop.TargetSource)public static java.lang.Object getProxy(TargetSource targetSource)
TargetSource のターゲットクラスを継承する、指定された TargetSource のプロキシを作成します。targetSource - プロキシが呼び出す TargetSource