@Repeatable(value=Disassemble.List.class) @Documented @Target(value={ANNOTATION_TYPE,FIELD,TYPE}) @Retention(value=RUNTIME) public @interface Disassemble
Declare a disassembly operation.
Specify the specific properties of the current object as the nested object to be disassembled.
Before the assembly operation starts, the disassembly operation declared in the class
will be performed first, and the nested objects will be extracted and flattened at this time.
For example, we declare an assembly operation and a disassembly operation in the class of the following example:
{@code
public class Foo {
// operation of assemblecn.crane4j.core.parser.TypeHierarchyBeanOperationParser;,
cn.crane4j.core.parser.handler.DisassembleAnnotationHandler| 限定符和类型 | 可选元素和说明 |
|---|---|
String[] |
groups
The group to which the current operation belongs.
|
String |
handler
The name of the handler to be used.
|
Class<?> |
handlerType
The type of the handler to be used.
|
String |
id
Operation id.
|
String |
key
Field name with nested objects to be disassembled.
|
int |
sort
Sort values.
|
Class<?> |
type
The type of nested object.
|
public abstract String id
public abstract int sort
public abstract String key
Field name with nested objects to be disassembled.
When the annotation is on an attribute, it is forced to specify the name of the annotated attribute.
public abstract String handler
cn.crane4j.core.executor.handler.DisassembleOperationHandler;public abstract Class<?> handlerType
cn.crane4j.core.executor.handler.DisassembleOperationHandler;public abstract String[] groups
Copyright © 2024. All rights reserved.