Module org.mule.sdk.api
Interface AttributesTypeResolver<K>
- Type Parameters:
K- the generic type of the objects to be used as MetadataKeyId representing a type structure
- All Superinterfaces:
NamedTypeResolver
- All Known Implementing Classes:
AttributesStaticTypeResolver,NullMetadataResolver
Handles the dynamic
MetadataType resolving for the output attributes of an associated component.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionorg.mule.metadata.api.model.MetadataTypegetAttributesType(MetadataContext context, K key) Given an instance of typeK, resolves theirMetadataType, which represents the type structure.default StringThis is the name of the TypeResolver.Methods inherited from interface org.mule.sdk.api.metadata.resolving.NamedTypeResolver
getCategoryName
-
Method Details
-
getResolverName
This is the name of the TypeResolver. It should not be repeated amongInputTypeResolverandOutputTypeResolverwhich are used together.- Specified by:
getResolverNamein interfaceNamedTypeResolver- Returns:
- name of the resolver
-
getAttributesType
org.mule.metadata.api.model.MetadataType getAttributesType(MetadataContext context, K key) throws org.mule.runtime.api.metadata.MetadataResolvingException, org.mule.runtime.api.connection.ConnectionException Given an instance of typeK, resolves theirMetadataType, which represents the type structure. ThisMetadataTypewill be considered as the resultingMessageattributes type of the associated Component's output- Parameters:
context-MetadataContextof the MetaData resolutionkey-Krepresenting the type which's structure has to be resolved- Returns:
MetadataTypeassociated to the given- Throws:
org.mule.runtime.api.metadata.MetadataResolvingException- if an error occurs during theMetadataTypebuilding. SeeFailureCodefor possibleMetadataResolvingExceptionreasonsorg.mule.runtime.api.connection.ConnectionException- if an error occurs when using the connection provided by theMetadataContext
-