- All Superinterfaces:
org.mule.runtime.api.lifecycle.Disposable,MetadataContext
@MinMuleVersion("4.7.0")
@DoNotEnforceMinMuleVersion
@Experimental
public interface ChainInputMetadataContext
extends MetadataContext
MetadataContext specialization adding information relevant to ChainInputTypeResolver instances.
NOTE: Experimental feature. Backwards compatibility is not guaranteed.- Since:
- 0.9.0
-
Field Summary
Fields inherited from interface org.mule.runtime.api.lifecycle.Disposable
PHASE_NAME -
Method Summary
Modifier and TypeMethodDescriptionorg.mule.metadata.message.api.MessageMetadataTypeorg.mule.metadata.api.model.MetadataTypegetParameterResolvedType(String parameterName) Returns the resolvedMetadataTypefrom an input parameter of the owning component.Methods inherited from interface org.mule.runtime.api.lifecycle.Disposable
disposeMethods inherited from interface org.mule.sdk.api.metadata.MetadataContext
getCache, getConnection, getRouterOutputMetadataContext, getScopeOutputMetadataContext, getTypeBuilder, getTypeLoader
-
Method Details
-
getParameterResolvedType
org.mule.metadata.api.model.MetadataType getParameterResolvedType(String parameterName) throws NoSuchElementException, org.mule.runtime.api.metadata.MetadataResolvingException Returns the resolvedMetadataTypefrom an input parameter of the owning component. This is useful when the chain/route will be executed with a message that leverages said parameter's content.- Parameters:
parameterName- the name of the parameter- Returns:
- the parameter's resolved
MetadataType - Throws:
NoSuchElementException- if no parameter of that name exists in the owning component.org.mule.runtime.api.metadata.MetadataResolvingException
-
getInputMessageMetadataType
org.mule.metadata.message.api.MessageMetadataType getInputMessageMetadataType()- Returns:
- a
MessageMetadataTypedescribing the typed message that initially entered the root component (scope/router)
-