Module org.mule.sdk.api
Annotation Interface MetadataKeyPart
@Target(FIELD)
@Retention(RUNTIME)
@Documented
@MinMuleVersion("4.5.0")
public @interface MetadataKeyPart
Marks a field inside a POJO that represents a composed
MetadataKey as one of the parts of that composed
MetadataKey.
Multiple MetadataKeyParts describe a POJO that can be annotated with MetadataKeyId and also injected into a
InputTypeResolver or OutputTypeResolver.
MetadataKeyPart annotated fields must be of type String
- Since:
- 1.0
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionintThe resolution order of this key part, starting from1. -
Optional Element Summary
Optional Elements
-
Element Details
-
order
int orderThe resolution order of this key part, starting from1.- Returns:
- the resolution order of this key part during the building of the
MetadataKeyIdannotated parameter corresponding to thisMetadataKeyPart.
-
-
-
providedByKeyResolver
boolean providedByKeyResolver- Returns:
- whether or not
thisMetadataKeyPartwill be provided by theTypeKeysResolverassociated to the container of this part, or ifthispart has no predefined values and has to be provided by the user entirely.
- Default:
- true
-