| Package | Description |
|---|---|
| org.aoju.bus.proxy |
代理工厂
简化动态代理
|
| org.aoju.bus.proxy.aspects |
切面信息
|
| org.aoju.bus.proxy.factory |
基于cglib、javassist等的ProxyFactory实现
|
| org.aoju.bus.proxy.factory.cglib |
基于cglib的ProxyFactory实现
|
| org.aoju.bus.proxy.factory.javassist |
基于javassist的ProxyFactory实现
|
| 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.