public class SampleDataProviderMediator extends Object
SampleDataProvider, handling possible errors and
transforming the output into a Message| Constructor and Description |
|---|
SampleDataProviderMediator(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.ComponentModel componentModel,
org.mule.runtime.api.component.Component component,
MuleContext muleContext,
ReflectionCache reflectionCache,
StreamingManager streamingManager)
Creates a new instance of the mediator
|
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.message.Message |
getSampleData(ParameterValueResolver parameterValueResolver,
Supplier<Object> connectionSupplier,
Supplier<Object> configurationSupplier)
Resolves the sample data
|
org.mule.runtime.api.message.Message |
getSampleData(ParameterValueResolver parameterValueResolver,
Supplier<Object> connectionSupplier,
Supplier<Object> configurationSupplier,
Supplier<org.mule.runtime.api.connection.ConnectionProvider> connectionProviderSupplier)
Resolves the sample data
|
public SampleDataProviderMediator(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.ComponentModel componentModel,
org.mule.runtime.api.component.Component component,
MuleContext muleContext,
ReflectionCache reflectionCache,
StreamingManager streamingManager)
componentModel - container model which is a ParameterizedModel and EnrichableModelmuleContext - context to be able to initialize SampleDataProvider if necessarypublic org.mule.runtime.api.message.Message getSampleData(ParameterValueResolver parameterValueResolver, Supplier<Object> connectionSupplier, Supplier<Object> configurationSupplier) throws org.mule.sdk.api.data.sample.SampleDataException
parameterValueResolver - parameter resolver required if the associated SampleDataProvider requires the value of
parameters from the same parameter container.connectionSupplier - supplier of connection instances related to the container and used, if necessary, by the
SampleDataProviderconfigurationSupplier - supplier of configuration instance related to the container and used, if necessary, by the
SampleDataProviderMessage carrying the sample dataorg.mule.sdk.api.data.sample.SampleDataException - if an error occurs resolving the sample datapublic org.mule.runtime.api.message.Message getSampleData(ParameterValueResolver parameterValueResolver, Supplier<Object> connectionSupplier, Supplier<Object> configurationSupplier, Supplier<org.mule.runtime.api.connection.ConnectionProvider> connectionProviderSupplier) throws org.mule.sdk.api.data.sample.SampleDataException
parameterValueResolver - parameter resolver required if the associated SampleDataProvider requires the value
of parameters from the same parameter container.connectionSupplier - supplier of connection instances related to the container and used, if necessary, by the
SampleDataProviderconfigurationSupplier - supplier of configuration instance related to the container and used, if necessary, by the
SampleDataProviderconnectionProviderSupplier - the connection provider in charge of providing the connection given by the connection
supplier.Message carrying the sample dataorg.mule.sdk.api.data.sample.SampleDataException - if an error occurs resolving the sample dataCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.