@NoImplement
public interface MetadataProvider<T extends ComponentModel>
Message to expose its metadata descriptor, containing all the
MetadataType information associated to the Component's input and output elements| Modifier and Type | Method and Description |
|---|---|
MetadataResult<InputMetadataDescriptor> |
getInputMetadata(MetadataKey key)
Resolves the dynamic
MetadataType for the current component parameters with the given key. |
MetadataResult<ComponentMetadataDescriptor<T>> |
getMetadata()
Resolves the
ComponentMetadataDescriptor for the current component using only the static types of the Component's
parameters, attributes and output. |
MetadataResult<ComponentMetadataDescriptor<T>> |
getMetadata(MetadataKey key)
Resolves the
ComponentMetadataDescriptor for the current component using both static and dynamic resolving of the
Component's parameters, attributes and output. |
MetadataResult<OutputMetadataDescriptor> |
getOutputMetadata(MetadataKey key)
Resolves the dynamic
MetadataType for the current component output and attrubutes with the given key. |
MetadataResult<ComponentMetadataDescriptor<T>> getMetadata() throws MetadataResolvingException
ComponentMetadataDescriptor for the current component using only the static types of the Component's
parameters, attributes and output.ComponentMetadataDescriptor with the Static Metadata representation of the Component. Successful
MetadataResult if the Metadata is successfully retrieved Failure MetadataResult when the Metadata
retrieval of any element fails for any reasonMetadataResolvingException - if an error occurs while creating the MetadataContextMetadataResult<ComponentMetadataDescriptor<T>> getMetadata(MetadataKey key) throws MetadataResolvingException
ComponentMetadataDescriptor for the current component using both static and dynamic resolving of the
Component's parameters, attributes and output.
If the component has a InputTypeResolver or OutputTypeResolver associated that can be used to resolve the
Dynamic MetadataType for the Content or Output, then the ComponentMetadataDescriptor will contain those
Dynamic types instead of the static type declaration.
When neither Content nor Output have Dynamic types, then invoking this method is the same as invoking
getMetadata()
key - MetadataKey of the type which's structure has to be resolved, used both for input and output typesMetadataResult of ComponentMetadataDescriptor type with Successful MetadataResult if the
Metadata is successfully retrieved and a Failed MetadataResult when the Metadata retrieval of any element
fails for any reasonMetadataResolvingException - if an error occurs while creating the MetadataContextMetadataResult<InputMetadataDescriptor> getInputMetadata(MetadataKey key) throws MetadataResolvingException
MetadataType for the current component parameters with the given key.key - MetadataKey of the type which's structure has to be resolved.MetadataType of InputMetadataDescriptor. Successful MetadataResult if the Metadata is
successfully retrieved Failure MetadataResult when the Metadata retrieval fails for any reasonMetadataResolvingException - if an error occurs while creating the MetadataContextMetadataResult<OutputMetadataDescriptor> getOutputMetadata(MetadataKey key) throws MetadataResolvingException
MetadataType for the current component output and attrubutes with the given key.key - MetadataKey of the type which's structure has to be resolved.MetadataType of OutputMetadataDescriptor. Successful MetadataResult if the Metadata is
successfully retrieved Failure MetadataResult when the Metadata retrieval fails for any reasonMetadataResolvingException - if an error occurs while creating the MetadataContextCopyright © 2024 MuleSoft, Inc.. All rights reserved.