public abstract class ProxyFactory extends Object implements Serializable
Constructor and Description |
---|
ProxyFactory() |
Modifier and Type | Method and Description |
---|---|
static ProxyFactory |
create()
根据用户引入Cglib与否创建代理工厂
|
static <T> T |
createProxy(T target,
Aspect aspect)
根据用户引入Cglib与否自动创建代理对象
|
static <T> T |
createProxy(T target,
Class<? extends Aspect> aspectClass)
根据用户引入Cglib与否自动创建代理对象
|
abstract <T> T |
proxy(T target,
Aspect aspect)
创建代理
|
<T> T |
proxy(T target,
Class<? extends Aspect> aspectClass)
创建代理
|
public <T> T proxy(T target, Class<? extends Aspect> aspectClass)
T
- 代理对象类型target
- 被代理对象aspectClass
- 切面实现类,自动实例化public abstract <T> T proxy(T target, Aspect aspect)
T
- 代理对象类型target
- 被代理对象aspect
- 切面实现public static <T> T createProxy(T target, Class<? extends Aspect> aspectClass)
T
- 切面对象类型target
- 目标对象aspectClass
- 切面对象类public static <T> T createProxy(T target, Aspect aspect)
T
- 切面对象类型target
- 被代理对象aspect
- 切面实现public static ProxyFactory create()
Copyright © 2024. All rights reserved.