@Assemble(containerProviderName="mpMethodContainerProvider") @Documented @Target(value={ANNOTATION_TYPE,FIELD}) @Retention(value=RUNTIME) public @interface AssembleByMp
Assemble annotation with Assemble.containerProviderName() as "mpMethodContainerProvider" specified by default.| 限定符和类型 | 可选元素和说明 |
|---|---|
String |
container
The namespace of the data source container to be used.
|
String[] |
groups
The group to which the current operation belongs.
|
Class<?> |
handler
The type of the handler to be used.
|
String |
handlerName
The name of the handler to be used.
|
String |
key
Field name of key.
|
Mapping[] |
props
Attributes that need to be mapped
between the data source object and the current object.
|
Class<?>[] |
propTemplates
Mapping template classes.
|
int |
sort
Sort values.
|
public abstract int sort
public abstract String key
Field name of key. This field value will be used to obtain the associated data source object from the data source container later.
When the annotation is on the attribute, it will be forced to specify the name of the annotated attribute.
public abstract String container
public abstract String handlerName
public abstract Class<?> handler
public abstract Mapping[] props
propTemplates()public abstract Class<?>[] propTemplates
Mapping template classes.
specify a class, if MappingTemplate exists on the class,
it will scan and add Mapping to props()。
public abstract String[] groups
Copyright © 2023. All rights reserved.