| 程序包 | 说明 |
|---|---|
| org.springframework.javassist.bytecode | |
| org.springframework.javassist.utils |
| 限定符和类型 | 方法和说明 |
|---|---|
ReactiveHandlerCtClassBuilder |
ReactiveHandlerCtClassBuilder.bind(MvcBound bound) |
EndpointApiCtClassBuilder |
EndpointApiCtClassBuilder.bind(MvcBound bound) |
CtClassBuilder |
CtClassBuilder.bind(MvcBound bound)
通过给动态类增加
@WebBound注解实现,数据的绑定 |
ReactiveHandlerCtClassBuilder |
ReactiveHandlerCtClassBuilder.fluxMethod(MvcBound bound) |
ReactiveHandlerCtClassBuilder |
ReactiveHandlerCtClassBuilder.monoMethod(MvcBound bound) |
<T> EndpointApiCtClassBuilder |
EndpointApiCtClassBuilder.newMethod(Class<T> rtClass,
MvcMethod method,
MvcBound bound,
MvcParam<?>... params)
根据参数构造一个新的方法
|
<T> ReactiveHandlerCtClassBuilder |
ReactiveHandlerCtClassBuilder.newMethod(Class<T> rtClass,
String methodName,
MvcBound bound)
根据参数构造一个新的方法
|
EndpointApiCtClassBuilder |
EndpointApiCtClassBuilder.newMethod(String methodName,
String path,
org.springframework.web.bind.annotation.RequestMethod method,
String contentType,
MvcBound bound,
MvcParam<?>... params) |
| 限定符和类型 | 方法和说明 |
|---|---|
static javassist.bytecode.annotation.Annotation |
EndpointApiUtils.annotWebBound(javassist.bytecode.ConstPool constPool,
MvcBound bound)
构造 @WebBound 注解
|
static void |
EndpointApiUtils.methodAnnotations(javassist.CtMethod ctMethod,
javassist.bytecode.ConstPool constPool,
MvcMethod method,
MvcBound bound,
MvcParam<?>... params)
为方法添加 @WebBound | @GetMapping | @PostMapping | @PutMapping | @DeleteMapping | @PatchMapping 注解
|
static void |
EndpointApiUtils.methodAnnotations(javassist.CtMethod ctMethod,
javassist.bytecode.ConstPool constPool,
String path,
org.springframework.web.bind.annotation.RequestMethod method,
String contentType,
MvcBound bound,
MvcParam<?>[] params)
为方法添加 @GetMapping | @PostMapping | @PutMapping | @DeleteMapping | @PatchMapping 注解
|
static void |
EndpointApiUtils.methodBound(javassist.CtMethod ctMethod,
javassist.bytecode.ConstPool constPool,
MvcBound bound)
为方法添加 @WebBound 注解
|
Copyright © 2019. All rights reserved.