| 程序包 | 说明 |
|---|---|
| top.xiajibagao.crane.core.annotation |
| 限定符和类型 | 类和说明 |
|---|---|
interface |
Assemble
数据装配注解
注解在key字段上,将从指定的Container以当前注解字段值与
Assemble.namespace()获取数据源并填充到当前对象。 |
interface |
AssembleBeanIntrospect
字段使用
BeanIntrospectContainer容器装配 |
interface |
AssembleEnum
字段使用
EnumDictContainer容器装配 |
interface |
AssembleKeyIntrospect
字段使用
KeyIntrospectContainer容器装配 |
interface |
AssembleKV
字段使用
KeyValueContainer容器装配 |
interface |
AssembleMethodSource
字段使用
MethodSourceContainer容器装配 |
interface |
ConfigOption
解析配置,用于在可能需要的地方声明配置信息
|
interface |
Disassemble
数据装卸注解
注解在嵌套字段上,将会在处理数据时将注解字段递归并展开为复数需要进行装配操作的对象。
|
interface |
MethodSourceBean
方法数据源对象
注解类表明该类中存在可直接作为容器的数据源的方法,
允许直接在
MethodSourceBean.methods()中声明或者通过在方法上添加MethodSourceBean.Method注解的方式声明作为数据源的方法。 |
static interface |
MethodSourceBean.Method
表明
MethodSourceBean注解的类下作为容器的数据源的一个方法
当直接注解在方法上时:returnType与paramTypes为非必填项;
当直接声明在MethodSourceBean.methods()上时:
若returnType与paramTypes不填,则默认寻找返回值为Collection,且有且仅有一个Collection入参的同名方法;
若指定returnType与paramTypes,则根据指定返回值与入参类型寻找同名方法;
|
interface |
Operations
批量操作注解,标记在类上以声明当前类所需要的一组装配操作
|
interface |
ProcessorComponent
用于标记
OperateProcessorComponent接口的实现类,表示该组件允许被注册到哪些分组中 |
interface |
ProcessResult
表示方法的返回值需要进行处理
|
interface |
PropsTemplate
字段映射配置模板
在Assemble中指定被注解的类型,将从类上的注解中解析
PropsTemplate.value()并追加到props中。 |
Copyright © 2022. All rights reserved.