| Package | Description |
|---|---|
| org.aoju.bus.proxy | |
| org.aoju.bus.proxy.aspects | |
| org.aoju.bus.proxy.factory | |
| org.aoju.bus.proxy.factory.cglib | |
| org.aoju.bus.proxy.factory.javassist | |
| org.aoju.bus.proxy.intercept |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
Builder.proxy(T target,
Aspectj aspectj)
使用切面代理对象
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
Builder.proxy(T target,
Class<? extends Aspectj> aspectClass)
使用切面代理对象
|
| Modifier and Type | Class and Description |
|---|---|
class |
AspectjSimple
简单切面类,不做任何操作
可以继承此类实现自己需要的方法即可
|
class |
AspectjTimes
通过日志打印方法的执行时间的切面
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
AbstractFactory.createProxy(T target,
Aspectj aspectj)
根据用户引入Cglib与否自动创建代理对象
|
abstract <T> T |
AbstractFactory.proxy(T target,
Aspectj aspectj)
创建代理
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
AbstractFactory.createProxy(T target,
Class<? extends Aspectj> aspectClass)
根据用户引入Cglib与否自动创建代理对象
|
static <T> T |
AbstractFactory.proxy(T target,
Class<? extends Aspectj> aspectClass)
使用切面代理对象
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
CglibFactory.proxy(T target,
Aspectj aspectj) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
JavassistFactory.proxy(T target,
Aspectj aspectj) |
| Constructor and Description |
|---|
CglibInterceptor(Object target,
Aspectj aspectj)
构造
|
JavassistInterceptor(Object target,
Aspectj aspectj)
构造
|
Copyright © 2021. All rights reserved.