| 程序包 | 说明 |
|---|---|
| com.xiaoleilu.hutool.proxy | |
| com.xiaoleilu.hutool.proxy.aspects |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
ProxyUtil.proxy(Aspect aspect)
使用切面代理对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
ProxyUtil.proxy(T target,
Class<? extends Aspect> aspectClass)
使用切面代理对象
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
SimpleAspect
简单切面类,不做任何操作
可以继承此类实现自己需要的方法即可 |
class |
TimeIntervalAspect
通过日志打印方法的执行时间的切面
|
Copyright © 2017. All rights reserved.