public class ExtensionMessageSource extends ExtensionComponent<org.mule.runtime.api.meta.model.source.SourceModel> implements MessageSource, ExceptionCallback<org.mule.runtime.api.connection.ConnectionException>, org.mule.runtime.extension.api.runtime.source.ParameterizedSource, org.mule.runtime.extension.api.runtime.config.ConfiguredComponent, LifecycleStateEnabled
MessageSource which connects the Extensions API with the Mule runtime by connecting a Source with a flow
represented by a messageProcessorMessageSource.BackPressureStrategycacheIdGenerator, classLoader, componentLocator, componentModel, connectionManager, cursorProviderFactory, errorTypeRepository, extensionManager, metadataService, muleContext, streamingManager, transactionFactoryLocatorANNOTATION_NAME, LOCATION_KEY, ROOT_CONTAINER_NAME_KEY| Constructor and Description |
|---|
ExtensionMessageSource(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.source.SourceModel sourceModel,
SourceAdapterFactory sourceAdapterFactory,
org.mule.runtime.extension.api.runtime.config.ConfigurationProvider configurationProvider,
boolean primaryNodeOnly,
RetryPolicyTemplate retryPolicyTemplate,
CursorProviderFactory cursorProviderFactory,
MessageSource.BackPressureStrategy backPressureStrategy,
ExtensionManager managerAdapter,
org.mule.runtime.api.notification.NotificationDispatcher notificationDispatcher,
SingleResourceTransactionFactoryManager transactionFactoryManager,
String applicationName) |
| Modifier and Type | Method and Description |
|---|---|
void |
doDispose()
Implementors will use this method to perform their own disposing logic
|
protected void |
doInitialise()
Implementors will use this method to perform their own initialisation logic
|
void |
doStart()
Implementors will use this method to perform their own starting logic
|
void |
doStop()
Implementors will use this method to perform their own stopping logic
|
MessageSource.BackPressureStrategy |
getBackPressureStrategy() |
Optional<org.mule.runtime.extension.api.runtime.config.ConfigurationInstance> |
getConfigurationInstance() |
Map<String,Object> |
getInitialisationParameters() |
LifecycleState |
getLifecycleState() |
protected ParameterValueResolver |
getParameterValueResolver() |
void |
onException(org.mule.runtime.api.connection.ConnectionException exception) |
void |
setListener(Processor listener) |
String |
toString() |
protected void |
validateOperationConfiguration(org.mule.runtime.extension.api.runtime.config.ConfigurationProvider configurationProvider)
Validates if the current source is valid for the set configuration.
|
dispose, getConfiguration, getConfigurationProvider, getCursorProviderFactory, getErrorMappings, getExtensionModel, getMetadata, getMetadata, getMetadataKeys, getModels, getStaticConfiguration, getValues, initialise, requiresConfig, runWithMetadataContext, setAnnotations, setCacheIdGeneratorFactory, setComponentLocator, setMuleContext, start, stop, usesDynamicConfigurationgetAnnotation, getAnnotations, getDslSource, getIdentifier, getLocation, getRepresentation, getRootContainerLocation, initRootContainerNamepublic ExtensionMessageSource(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.source.SourceModel sourceModel,
SourceAdapterFactory sourceAdapterFactory,
org.mule.runtime.extension.api.runtime.config.ConfigurationProvider configurationProvider,
boolean primaryNodeOnly,
RetryPolicyTemplate retryPolicyTemplate,
CursorProviderFactory cursorProviderFactory,
MessageSource.BackPressureStrategy backPressureStrategy,
ExtensionManager managerAdapter,
org.mule.runtime.api.notification.NotificationDispatcher notificationDispatcher,
SingleResourceTransactionFactoryManager transactionFactoryManager,
String applicationName)
public Optional<org.mule.runtime.extension.api.runtime.config.ConfigurationInstance> getConfigurationInstance()
getConfigurationInstance in interface org.mule.runtime.extension.api.runtime.config.ConfiguredComponentpublic void onException(org.mule.runtime.api.connection.ConnectionException exception)
onException in interface ExceptionCallback<org.mule.runtime.api.connection.ConnectionException>public void doStart()
throws org.mule.runtime.api.exception.MuleException
ExtensionComponentdoStart in class ExtensionComponent<org.mule.runtime.api.meta.model.source.SourceModel>org.mule.runtime.api.exception.MuleException - if the component could not startpublic void doStop()
throws org.mule.runtime.api.exception.MuleException
ExtensionComponentdoStop in class ExtensionComponent<org.mule.runtime.api.meta.model.source.SourceModel>org.mule.runtime.api.exception.MuleException - if the component could not stoppublic void doDispose()
ExtensionComponentdoDispose in class ExtensionComponent<org.mule.runtime.api.meta.model.source.SourceModel>public void setListener(Processor listener)
setListener in interface MessageSourceprotected void validateOperationConfiguration(org.mule.runtime.extension.api.runtime.config.ConfigurationProvider configurationProvider)
IllegalSourceExceptionvalidateOperationConfiguration in class ExtensionComponent<org.mule.runtime.api.meta.model.source.SourceModel>protected ParameterValueResolver getParameterValueResolver()
getParameterValueResolver in class ExtensionComponent<org.mule.runtime.api.meta.model.source.SourceModel>protected void doInitialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
ExtensionComponentdoInitialise in class ExtensionComponent<org.mule.runtime.api.meta.model.source.SourceModel>org.mule.runtime.api.lifecycle.InitialisationException - if a fatal error occurs causing the Mule instance to shutdownpublic Map<String,Object> getInitialisationParameters()
getInitialisationParameters in interface org.mule.runtime.extension.api.runtime.source.ParameterizedSourcepublic MessageSource.BackPressureStrategy getBackPressureStrategy()
getBackPressureStrategy in interface MessageSourcepublic LifecycleState getLifecycleState()
getLifecycleState in interface LifecycleStateEnabledCopyright © 2003–2020 MuleSoft, Inc.. All rights reserved.