@NoImplement public interface ExecutionContextAdapter<M extends org.mule.runtime.api.meta.model.ComponentModel> extends EventedExecutionContext<M>
ExecutionContext which functionality that is internal to this
implementation of the extensions API and shouldn't be accessible for the extensions themselves.
Among other things, it adds the concept of variables, which are key-value pairs in order to contain state that is not specific
to the operation but to the extensions framework itself. It's not to contain operation parameters as its
ExecutionContext.getParameter(String) counter part. It's meant for things like connection pointers, state to be shared between
interceptors and operation executors, etc.| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.component.Component |
getComponent() |
org.mule.runtime.api.component.location.ComponentLocation |
getComponentLocation()
Deprecated.
use
#getComponent().getLocation() |
org.mule.runtime.api.scheduler.Scheduler |
getCurrentScheduler() |
CursorProviderFactory |
getCursorProviderFactory() |
MuleContext |
getMuleContext() |
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 |
<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. |
changeEvent, getEvent<T> T getVariable(String key)
keyT - the generic type for the valuekey - the variable's keykey or null if no such variable was registered.Object setVariable(String key, Object value)
key and value.key - the variable's key. Cannot be nullvalue - the associated value. Cannot be nullkey or null if no such association existed.<T> T removeVariable(String key)
key.T - the generic type for the removed valuekey - the variable's key. Cannot be nullkey or null if no such association existedOptional<TransactionConfig> getTransactionConfig()
Optional TransactionConfig if the operation is transactionalMuleContext getMuleContext()
MuleContext on which the operation is being executedCursorProviderFactory getCursorProviderFactory()
CursorProviderFactory configured on the executing componentStreamingManager getStreamingManager()
StreamingManagerorg.mule.runtime.api.component.Component getComponent()
Component executing@Deprecated org.mule.runtime.api.component.location.ComponentLocation getComponentLocation()
#getComponent().getLocation()ComponentLocation of the executing componentOptional<RetryPolicyTemplate> getRetryPolicyTemplate()
void setSecurityContext(org.mule.runtime.api.security.SecurityContext securityContext)
securityContext - the context for this session or null if the request is not secure.org.mule.runtime.api.security.SecurityContext getSecurityContext()
void setCurrentScheduler(org.mule.runtime.api.scheduler.Scheduler currentScheduler)
currentScheduler - the scheduler that was determined by the ProcessingStrategy to execute this component.org.mule.runtime.api.scheduler.Scheduler getCurrentScheduler()
ProcessingStrategy to execute this component.Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.