public interface FlowInterceptorFactory extends Supplier<FlowInterceptor>
FlowInterceptor instances.
Implementations may have fields annotated with @Inject, which will be resolved before attempting to
call Supplier.get().
| Modifier and Type | Interface and Description |
|---|---|
static interface |
FlowInterceptorFactory.FlowInterceptorOrder |
| Modifier and Type | Field and Description |
|---|---|
static String |
FLOW_INTERCEPTORS_ORDER_REGISTRY_KEY
By making a
FlowInterceptorFactory.FlowInterceptorOrder available in the Registry with this key, the order in which the
FlowInterceptorFactories products will be applied to the applicable components. can be
customized. |
| Modifier and Type | Method and Description |
|---|---|
default boolean |
intercept(String flowName)
Determines if a
FlowInterceptor shall be created by this factory to be applied to a flow based on its name. |
static final String FLOW_INTERCEPTORS_ORDER_REGISTRY_KEY
FlowInterceptorFactory.FlowInterceptorOrder available in the Registry with this key, the order in which the
FlowInterceptorFactories products will be applied to the applicable components. can be
customized.
For each factory, its fully qualified class name will be obtained and matched against the
passed packagesOrder to sort the factories. In the case there is more than one factory
with a package name prefix, the order in which they were added will be
kept.
Assuming this is called with parameters ("org.package", "com.plugin"), and the following
factories have been added through #addInterceptorFactory(FlowInterceptorFactory) (in
this order):
com.plugin.SomeInterceptororg.mule.MuleInterceptororg.package.logging.LoggerInterceptorcom.plugin.SomeOtherInterceptororg.mule.OtherMuleInterceptorfactories will be sorted, when obtained through #getInterceptorFactories() like
this:
org.package.logging.LoggerInterceptorcom.plugin.SomeInterceptorcom.plugin.SomeOtherInterceptororg.mule.MuleInterceptororg.mule.OtherMuleInterceptordefault boolean intercept(String flowName)
FlowInterceptor shall be created by this factory to be applied to a flow based on its name.flowName - the name of the to-be intercepted flow.true if this handler must be applied to the flow with the provided name, false otherwise.Copyright © 2025 MuleSoft, Inc.. All rights reserved.