public class ExtensionMessageSource extends ExtensionComponent<org.mule.runtime.api.meta.model.source.SourceModel> implements MessageSource, ExceptionCallback
MessageSource which connects the Extensions API with the Mule runtime by connecting a Source with a flow
represented by a messageProcessorclassLoader, connectionManager, extensionManager, flowConstruct, muleContext, streamingManager| 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.ConfigurationProvider configurationProvider,
RetryPolicyTemplate retryPolicyTemplate,
CursorProviderFactory cursorProviderFactory,
ExtensionManager managerAdapter) |
| 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
|
Optional<org.mule.runtime.extension.api.runtime.ConfigurationInstance> |
getConfigurationInstance() |
Optional<org.mule.runtime.api.connection.ConnectionHandler> |
getConnectionHandler() |
protected ParameterValueResolver |
getParameterValueResolver() |
void |
onException(Throwable exception) |
void |
setListener(Processor listener) |
protected void |
validateOperationConfiguration(org.mule.runtime.extension.api.runtime.ConfigurationProvider configurationProvider)
Validates if the current source is valid for the set configuration.
|
dispose, getConfiguration, getCursorProviderFactory, getExtensionModel, getMetadata, getMetadata, getMetadataKeys, initialise, runWithMetadataContext, setFlowConstruct, setMuleContext, start, stopgetAnnotation, getAnnotations, getLocation, setAnnotationspublic 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.ConfigurationProvider configurationProvider,
RetryPolicyTemplate retryPolicyTemplate,
CursorProviderFactory cursorProviderFactory,
ExtensionManager managerAdapter)
public Optional<org.mule.runtime.extension.api.runtime.ConfigurationInstance> getConfigurationInstance()
public Optional<org.mule.runtime.api.connection.ConnectionHandler> getConnectionHandler()
public void onException(Throwable exception)
onException in interface ExceptionCallbackpublic 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.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 shutdownCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.