public class ComponentsUtil extends Object
| Constructor and Description |
|---|
ComponentsUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Optional<org.mule.runtime.api.component.Component> |
findComponent(org.mule.runtime.api.component.ComponentIdentifier identifier,
String location,
org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator) |
static Optional<org.mule.runtime.api.component.location.ComponentLocation> |
findLocation(String location,
org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator) |
static String |
getLocationParent(String location)
Find a parent location, usually represented 2 level up, for given location
string.
|
static String |
getRouteContainerLocation(TraceComponent traceComponent)
Gets the parent container for router's route.
|
static TraceComponent |
getTraceComponent(org.mule.runtime.api.component.location.ComponentLocation subFlowComp,
TraceComponent traceComponent)
Build a Trace component for sub-flow
|
static boolean |
isAsyncScope(org.mule.runtime.api.component.TypedComponentIdentifier identifier) |
static boolean |
isFirstProcessor(org.mule.runtime.api.component.location.ComponentLocation location) |
static boolean |
isFlowRef(org.mule.runtime.api.component.location.ComponentLocation location) |
static boolean |
isFlowTrace(TraceComponent traceComponent) |
static boolean |
isFlowTypeContainer(org.mule.runtime.api.component.location.ComponentLocation componentLocation) |
static boolean |
isRoute(org.mule.runtime.api.component.TypedComponentIdentifier tci) |
static boolean |
isSubFlow(org.mule.runtime.api.component.location.ComponentLocation location) |
static Optional<org.mule.runtime.api.component.location.ComponentLocation> |
resolveFlowName(org.mule.runtime.core.api.el.ExpressionManager expressionManager,
TraceComponent traceComponent,
org.mule.runtime.api.el.BindingContext context,
org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator)
Resolves the target flow name using given #expressionManager and updates it
in
TraceComponent.tags. |
public static Optional<org.mule.runtime.api.component.location.ComponentLocation> findLocation(String location, org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator)
public static boolean isSubFlow(org.mule.runtime.api.component.location.ComponentLocation location)
public static boolean isFlowRef(org.mule.runtime.api.component.location.ComponentLocation location)
public static Optional<org.mule.runtime.api.component.Component> findComponent(org.mule.runtime.api.component.ComponentIdentifier identifier, String location, org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator)
public static String getRouteContainerLocation(TraceComponent traceComponent)
traceComponent - TraceComponentpublic static String getLocationParent(String location)
location - Stringpublic static boolean isRoute(org.mule.runtime.api.component.TypedComponentIdentifier tci)
public static boolean isFlowTrace(TraceComponent traceComponent)
public static boolean isFirstProcessor(org.mule.runtime.api.component.location.ComponentLocation location)
public static boolean isFlowTypeContainer(org.mule.runtime.api.component.location.ComponentLocation componentLocation)
public static boolean isAsyncScope(org.mule.runtime.api.component.TypedComponentIdentifier identifier)
public static TraceComponent getTraceComponent(org.mule.runtime.api.component.location.ComponentLocation subFlowComp, TraceComponent traceComponent)
subFlowComp - traceComponent - of the flow-ref invoking the sub-flowTraceComponent for the sub-flowpublic static Optional<org.mule.runtime.api.component.location.ComponentLocation> resolveFlowName(org.mule.runtime.core.api.el.ExpressionManager expressionManager, TraceComponent traceComponent, org.mule.runtime.api.el.BindingContext context, org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator)
TraceComponent.tags.
Then it looks up the component location for the resolved flow using given
#configurationComponentLocator.expressionManager - ExpressionManager to resolve namestraceComponent - TraceComponent of the flow-refcontext - BindingContext to use with ExpressionManagerconfigurationComponentLocator - ConfigurationComponentLocator to look up componentsCopyright © 2024 AVIO Consulting. All rights reserved.