public class LazySampleDataService extends Object implements SampleDataService, org.mule.runtime.api.lifecycle.Initialisable
SampleDataService implementation that initialises just the required components before executing the resolving logic.
This guarantees that if the application has been created lazily, the requested components exists before the execution of the
actual SampleDataService.
SampleDataService| Modifier and Type | Field and Description |
|---|---|
static String |
NON_LAZY_SAMPLE_DATA_SERVICE |
SAMPLE_DATA_SERVICE_KEY| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.message.Message |
getSampleData(org.mule.runtime.api.component.location.Location location) |
org.mule.runtime.api.message.Message |
getSampleData(String extensionName,
String componentName,
Map<String,Object> parameters,
Supplier<Optional<org.mule.runtime.extension.api.runtime.config.ConfigurationInstance>> configurationInstanceSupplier) |
void |
initialise() |
public static final String NON_LAZY_SAMPLE_DATA_SERVICE
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic org.mule.runtime.api.message.Message getSampleData(org.mule.runtime.api.component.location.Location location)
throws org.mule.sdk.api.data.sample.SampleDataException
getSampleData in interface SampleDataServiceorg.mule.sdk.api.data.sample.SampleDataExceptionpublic org.mule.runtime.api.message.Message getSampleData(String extensionName, String componentName, Map<String,Object> parameters, Supplier<Optional<org.mule.runtime.extension.api.runtime.config.ConfigurationInstance>> configurationInstanceSupplier) throws org.mule.sdk.api.data.sample.SampleDataException
getSampleData in interface SampleDataServiceorg.mule.sdk.api.data.sample.SampleDataExceptionCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.