public class ProxyUtil extends Object
| 构造器和说明 |
|---|
ProxyUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
attach(org.noear.solon.core.AopContext aopContext,
Class<?> clz,
InvocationHandler handler)
为类,系上拦截代理
|
static void |
attachByScan(org.noear.solon.core.AopContext aopContext,
String basePackage,
InvocationHandler handler)
为搜索的类,系上拦截代理
|
static void |
attachByScan(org.noear.solon.core.AopContext aopContext,
String basePackage,
Predicate<String> filter,
InvocationHandler handler)
为搜索的类,系上拦截代理
|
static boolean |
binding(org.noear.solon.core.BeanWrap bw)
绑定代理
|
static boolean |
binding(org.noear.solon.core.BeanWrap bw,
String name,
boolean typed)
绑定代理
|
public static boolean binding(org.noear.solon.core.BeanWrap bw,
String name,
boolean typed)
name - 注册名字typed - 注册类型(当 name 不为空时才有效;否则都算 true)public static boolean binding(org.noear.solon.core.BeanWrap bw)
public static void attach(org.noear.solon.core.AopContext aopContext,
Class<?> clz,
InvocationHandler handler)
public static void attachByScan(org.noear.solon.core.AopContext aopContext,
String basePackage,
InvocationHandler handler)
basePackage - 基础包名handler - 拦截代理public static void attachByScan(org.noear.solon.core.AopContext aopContext,
String basePackage,
Predicate<String> filter,
InvocationHandler handler)
aopContext - 类加载器basePackage - 基础包名filter - 过滤器handler - 拦截代理Copyright © 2023. All rights reserved.