Class ContentParameterDeclarationEnricher

java.lang.Object
org.mule.runtime.extension.internal.loader.enricher.ContentParameterDeclarationEnricher
All Implemented Interfaces:
DeclarationEnricher, WalkingDeclarationEnricher

public final class ContentParameterDeclarationEnricher extends Object implements WalkingDeclarationEnricher
Sets defaults and other configurations on content parameters so that they provider a consistent experience.

For example:

  • Primary content parameters are set as optional and defaulting to Optional.PAYLOAD
  • If a component only has one content parameter, then it's assigned the ParameterRole.PRIMARY_CONTENT role

This all happens for sources and operations. Connection providers and configs are not considered

Since:
1.0