public interface MetadataAware
MuleMessage 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<ComponentMetadataDescriptor> |
getMetadata()
Resolves the
ComponentMetadataDescriptor for the current component using
only the static types of the Component's parameters, attributes and output. |
MetadataResult<ComponentMetadataDescriptor> |
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<Set<MetadataKey>> |
getMetadataKeys()
Returns the list of types that can be described, by the
MetadataKeysResolver
associated to this Component |
MetadataResult<Set<MetadataKey>> getMetadataKeys() throws MetadataResolvingException
MetadataKeysResolver
associated to this ComponentMetadataResult if the keys are successfully resolved
Failure MetadataResult if there is an error while retrieving the keysMetadataResolvingException - if an error occurs while creating the MetadataContextMetadataResult<ComponentMetadataDescriptor> 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> 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 MetadataContentResolver or MetadataOutputResolver 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 MetadataContextCopyright © 2016 MuleSoft, Inc.. All rights reserved.