public final class ProcessorChainValueResolver extends Object implements ValueResolver<org.mule.runtime.extension.api.runtime.route.Chain>
ValueResolver which wraps the given Processor in a Chain,
using the event of the current ValueResolvingContext.
This resolver returns new instances per every invocation| Constructor and Description |
|---|
ProcessorChainValueResolver(StreamingManager streamingManager,
MessageProcessorChain chain)
Creates a resolver for the provided chain executor.
|
ProcessorChainValueResolver(StreamingManager streamingManager,
MuleContext ctx,
List<Processor> processors)
Creates a resolver for a new chain executor with the give
processors, tying the lifecycle of that chain to the
lifecycle of the provided muleContext. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isContent() |
boolean |
isDynamic()
Returns
false if subsequent invocations to ValueResolver.resolve(ValueResolvingContext) will return the same value. |
org.mule.runtime.extension.api.runtime.route.Chain |
resolve(ValueResolvingContext context)
|
public ProcessorChainValueResolver(StreamingManager streamingManager, MessageProcessorChain chain)
chain must be managed by the owner
of the chain.streamingManager - chain - the chain to create an executor forpublic ProcessorChainValueResolver(StreamingManager streamingManager, MuleContext ctx, List<Processor> processors)
processors, tying the lifecycle of that chain to the
lifecycle of the provided muleContext.ctx - the context to tie the lifecycle of the chain to be created toprocessors - the processors that will be part of the chain to create an executor forpublic org.mule.runtime.extension.api.runtime.route.Chain resolve(ValueResolvingContext context) throws org.mule.runtime.api.exception.MuleException
resolve in interface ValueResolver<org.mule.runtime.extension.api.runtime.route.Chain>context - a ValueResolvingContextChainorg.mule.runtime.api.exception.MuleExceptionpublic boolean isDynamic()
ValueResolverfalse if subsequent invocations to ValueResolver.resolve(ValueResolvingContext) will return the same value.
Notice that if it returns true, then it might return different values per invocation but that's not guaranteed.isDynamic in interface ValueResolver<org.mule.runtime.extension.api.runtime.route.Chain>falsepublic boolean isContent()
isContent in interface ValueResolver<org.mule.runtime.extension.api.runtime.route.Chain>Content on the component with the value to be resolved.Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.