public abstract class AbstractExecutionContextAdapterDecorator<M extends org.mule.runtime.api.meta.model.ComponentModel> extends Object implements ExecutionContextAdapter<M>
ExecutionContextAdapters.| Constructor and Description |
|---|
AbstractExecutionContextAdapterDecorator(ExecutionContextAdapter<M> decorated) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeEvent(CoreEvent updated)
Changes the
CoreEvent on which an operation is to be executed. |
org.mule.runtime.api.component.Component |
getComponent() |
org.mule.runtime.api.component.location.ComponentLocation |
getComponentLocation() |
M |
getComponentModel() |
Optional<org.mule.runtime.extension.api.runtime.config.ConfigurationInstance> |
getConfiguration() |
org.mule.runtime.api.scheduler.Scheduler |
getCurrentScheduler() |
CursorProviderFactory |
getCursorProviderFactory() |
CoreEvent |
getEvent()
Returns the
CoreEvent on which an operation is to be executed |
org.mule.runtime.api.meta.model.ExtensionModel |
getExtensionModel() |
MuleContext |
getMuleContext() |
<T> T |
getParameter(String parameterName) |
<T> T |
getParameterOrDefault(String parameterName,
T defaultValue) |
Map<String,Object> |
getParameters() |
Optional<RetryPolicyTemplate> |
getRetryPolicyTemplate() |
org.mule.runtime.api.security.SecurityContext |
getSecurityContext()
The security context for this session.
|
StreamingManager |
getStreamingManager() |
Optional<TransactionConfig> |
getTransactionConfig() |
<T> T |
getVariable(String key)
Returns the value associated with the
key |
boolean |
hasParameter(String arg0) |
<T> T |
removeVariable(String key)
Removes the variable value associated with
key. |
void |
setCurrentScheduler(org.mule.runtime.api.scheduler.Scheduler currentScheduler) |
void |
setSecurityContext(org.mule.runtime.api.security.SecurityContext securityContext)
The security context for this session.
|
Object |
setVariable(String key,
Object value)
Sets a variable of the given
key and value. |
public AbstractExecutionContextAdapterDecorator(ExecutionContextAdapter<M> decorated)
public CoreEvent getEvent()
EventedExecutionContextCoreEvent on which an operation is to be executedgetEvent in interface EventedExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>public void changeEvent(CoreEvent updated)
EventedExecutionContextCoreEvent on which an operation is to be executed. Not null.changeEvent in interface EventedExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>updated - the event to usepublic org.mule.runtime.api.security.SecurityContext getSecurityContext()
ExecutionContextAdaptergetSecurityContext in interface ExecutionContextAdapter<M extends org.mule.runtime.api.meta.model.ComponentModel>public void setSecurityContext(org.mule.runtime.api.security.SecurityContext securityContext)
ExecutionContextAdaptersetSecurityContext in interface ExecutionContextAdapter<M extends org.mule.runtime.api.meta.model.ComponentModel>securityContext - the context for this session or null if the request is not secure.public org.mule.runtime.api.scheduler.Scheduler getCurrentScheduler()
getCurrentScheduler in interface ExecutionContextAdapter<M extends org.mule.runtime.api.meta.model.ComponentModel>ProcessingStrategy to execute this component.public void setCurrentScheduler(org.mule.runtime.api.scheduler.Scheduler currentScheduler)
setCurrentScheduler in interface ExecutionContextAdapter<M extends org.mule.runtime.api.meta.model.ComponentModel>currentScheduler - the scheduler that was determined by the ProcessingStrategy to execute this component.public M getComponentModel()
getComponentModel in interface org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>public Optional<org.mule.runtime.extension.api.runtime.config.ConfigurationInstance> getConfiguration()
getConfiguration in interface org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>public org.mule.runtime.api.meta.model.ExtensionModel getExtensionModel()
getExtensionModel in interface org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>public <T> T getParameter(String parameterName)
getParameter in interface org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>public <T> T getParameterOrDefault(String parameterName, T defaultValue)
getParameterOrDefault in interface org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>public Map<String,Object> getParameters()
getParameters in interface org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>public boolean hasParameter(String arg0)
hasParameter in interface org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>public <T> T getVariable(String key)
ExecutionContextAdapterkeygetVariable in interface ExecutionContextAdapter<M extends org.mule.runtime.api.meta.model.ComponentModel>T - the generic type for the valuekey - the variable's keykey or null if no such variable was registered.public Object setVariable(String key, Object value)
ExecutionContextAdapterkey and value.setVariable in interface ExecutionContextAdapter<M extends org.mule.runtime.api.meta.model.ComponentModel>key - the variable's key. Cannot be nullvalue - the associated value. Cannot be nullkey or null if no such association existed.public <T> T removeVariable(String key)
ExecutionContextAdapterkey.removeVariable in interface ExecutionContextAdapter<M extends org.mule.runtime.api.meta.model.ComponentModel>T - the generic type for the removed valuekey - the variable's key. Cannot be nullkey or null if no such association existedpublic Optional<TransactionConfig> getTransactionConfig()
getTransactionConfig in interface ExecutionContextAdapter<M extends org.mule.runtime.api.meta.model.ComponentModel>Optional TransactionConfig if the operation is transactionalpublic MuleContext getMuleContext()
getMuleContext in interface ExecutionContextAdapter<M extends org.mule.runtime.api.meta.model.ComponentModel>MuleContext on which the operation is being executedpublic CursorProviderFactory getCursorProviderFactory()
getCursorProviderFactory in interface ExecutionContextAdapter<M extends org.mule.runtime.api.meta.model.ComponentModel>CursorProviderFactory configured on the executing componentpublic StreamingManager getStreamingManager()
getStreamingManager in interface ExecutionContextAdapter<M extends org.mule.runtime.api.meta.model.ComponentModel>StreamingManagerpublic org.mule.runtime.api.component.Component getComponent()
getComponent in interface ExecutionContextAdapter<M extends org.mule.runtime.api.meta.model.ComponentModel>Component executingpublic org.mule.runtime.api.component.location.ComponentLocation getComponentLocation()
getComponentLocation in interface ExecutionContextAdapter<M extends org.mule.runtime.api.meta.model.ComponentModel>ComponentLocation of the executing componentpublic Optional<RetryPolicyTemplate> getRetryPolicyTemplate()
getRetryPolicyTemplate in interface ExecutionContextAdapter<M extends org.mule.runtime.api.meta.model.ComponentModel>Copyright © 2003–2025 MuleSoft, Inc.. All rights reserved.