Package | Description |
---|---|
org.dromara.hutool.extra.aop |
JDK动态代理封装,提供非IOC下的切面支持,封装包括:
基于
Proxy 代理
基于Spring-cglib代理
考虑到cglib库不再更新且对JDK9+兼容性问题,不再封装
createEngine proxy
ProxyEngineFactory =》 ProxyEngine =》 Proxy
|
org.dromara.hutool.extra.aop.engine |
切面实现引擎
|
org.dromara.hutool.extra.aop.engine.jdk |
JDK方式切面实现,基于
Proxy 封装 |
org.dromara.hutool.extra.aop.engine.spring |
Spring-cglib切面实现
|
Modifier and Type | Method and Description |
---|---|
static ProxyEngine |
ProxyUtil.getEngine()
获取动态代理引擎
|
Modifier and Type | Method and Description |
---|---|
static ProxyEngine |
ProxyEngineFactory.createEngine()
根据用户引入Cglib与否创建代理工厂
|
static ProxyEngine |
ProxyEngineFactory.getEngine()
获得单例的ProxyEngine
|
Modifier and Type | Class and Description |
---|---|
class |
JdkProxyEngine
JDK实现的切面代理
|
Modifier and Type | Class and Description |
---|---|
class |
SpringCglibProxyEngine
基于Spring-cglib的切面代理工厂
|
Copyright © 2025. All rights reserved.