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.
|
| Modifier and Type | Method and Description |
|---|---|
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 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>falseCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.