| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | ProxyFactory(Class<?>...
the interfaces that the proxy should implement proxyInterfaces)Create a new ProxyFactory. |
| public | ProxyFactory(Class<?>
the interface that the proxy should implement proxyInterface, Interceptor the interceptor that the proxy should invoke interceptor)Create a new ProxyFactory for the given interface and interceptor. |
| public | ProxyFactory(Class<?>
the interface that the proxy should implement proxyInterface, TargetSource the TargetSource that the proxy should invoke targetSource)Create a ProxyFactory for the specified |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public Object | Returns: the proxy objectthe class loader to create the proxy with
(or classLoader)null for the low-level proxy facility's default)Create a new proxy according to the settings in this factory. |
| public static <T> T | Returns: the proxy objectthe interface that the proxy should implement proxyInterface, Interceptor the interceptor that the proxy should invoke interceptor)Create a new proxy for the given interface and interceptor. |
| public static <T> T | Returns: the proxy objectthe interface that the proxy should implement proxyInterface, TargetSource the TargetSource that the proxy should invoke targetSource)Create a proxy for the specified |
| public static Object | Returns: the proxy objectthe TargetSource that the proxy should invoke targetSource)Create a proxy for the specified |
| public Class | Returns: the proxy classthe class loader to create the proxy class with
(or classLoader)null for the low-level proxy facility's default)Determine the proxy class according to the settings in this factory. |
| ProxyFactory | back to summary |
|---|---|
| public ProxyFactory() Create a new ProxyFactory. | |
| ProxyFactory | back to summary |
|---|---|
| public ProxyFactory(Object target) Create a new ProxyFactory. Will proxy all interfaces that the given target implements.
| |
| ProxyFactory | back to summary |
|---|---|
| public ProxyFactory(Class<?>... proxyInterfaces) Create a new ProxyFactory. No target, only interfaces. Must add interceptors.
| |
| ProxyFactory | back to summary |
|---|---|
| public ProxyFactory(Class<?> proxyInterface, Interceptor interceptor) Create a new ProxyFactory for the given interface and interceptor. Convenience method for creating a proxy for a single interceptor, assuming that the interceptor handles all calls itself rather than delegating to a target, like in the case of remoting proxies.
| |
| ProxyFactory | back to summary |
|---|---|
| public ProxyFactory(Class<?> proxyInterface, TargetSource targetSource) Create a ProxyFactory for the specified
| |
| getProxy | back to summary |
|---|---|
| public Object getProxy() Create a new proxy according to the settings in this factory. Can be called repeatedly. Effect will vary if we've added or removed interfaces. Can add and remove interceptors. Uses a default class loader: Usually, the thread context class loader (if necessary for proxy creation).
| |
| getProxy | back to summary |
|---|---|
| public Object getProxy(ClassLoader classLoader) Create a new proxy according to the settings in this factory. Can be called repeatedly. Effect will vary if we've added or removed interfaces. Can add and remove interceptors. Uses the given class loader (if necessary for proxy creation).
| |
| getProxy | back to summary |
|---|---|
| public static <T> T getProxy(Class<T> proxyInterface, Interceptor interceptor) Create a new proxy for the given interface and interceptor. Convenience method for creating a proxy for a single interceptor, assuming that the interceptor handles all calls itself rather than delegating to a target, like in the case of remoting proxies.
| |
| getProxy | back to summary |
|---|---|
| public static <T> T getProxy(Class<T> proxyInterface, TargetSource targetSource) Create a proxy for the specified
| |
| getProxy | back to summary |
|---|---|
| public static Object getProxy(TargetSource targetSource) Create a proxy for the specified
| |
| getProxyClass | back to summary |
|---|---|
| public Class Determine the proxy class according to the settings in this factory.
| |