public class ComponentAstBasedValueProviderCacheIdGenerator extends Object implements ValueProviderCacheIdGenerator<org.mule.runtime.ast.api.ComponentAst>
ComponentAst based implementation of a ValueProviderCacheIdGenerator| Constructor and Description |
|---|
ComponentAstBasedValueProviderCacheIdGenerator(ComponentLocator<org.mule.runtime.ast.api.ComponentAst> locator) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ValueProviderCacheId> |
getIdForResolvedValues(org.mule.runtime.ast.api.ComponentAst containerComponent,
String parameterName)
The returned
ValueProviderCacheId will contain all acting parameters required by the
ValueProvider as parts. |
Optional<ValueProviderCacheId> |
getIdForResolvedValues(org.mule.runtime.ast.api.ComponentAst containerComponent,
String parameterName,
String targetPath)
The returned
ValueProviderCacheId will contain all acting parameters required by the
ValueProvider as parts. |
public ComponentAstBasedValueProviderCacheIdGenerator(ComponentLocator<org.mule.runtime.ast.api.ComponentAst> locator)
public Optional<ValueProviderCacheId> getIdForResolvedValues(org.mule.runtime.ast.api.ComponentAst containerComponent, String parameterName)
ValueProviderCacheId will contain all acting parameters required by the
ValueProvider as parts. In case the ComponentAst corresponds to a
Source or Operation, if the ValueProvider requires a connection or a
configuration, their id will be added as part. The resolution of a config or connection id as part is different from the one
done when their are the one's holding the resolving parameter. In the case they are parts needed by another
ValueProvider, acting parameters will not exist. Therefore, only parameters
required for metadata are used as input to calculate the ValueProviderCacheId.getIdForResolvedValues in interface ValueProviderCacheIdGenerator<org.mule.runtime.ast.api.ComponentAst>public Optional<ValueProviderCacheId> getIdForResolvedValues(org.mule.runtime.ast.api.ComponentAst containerComponent, String parameterName, String targetPath)
ValueProviderCacheId will contain all acting parameters required by the
ValueProvider as parts. In case the ComponentAst corresponds to a
Source or Operation, if the ValueProvider requires a connection or a
configuration, their id will be added as part. The resolution of a config or connection id as part is different from the one
done when their are the one's holding the resolving parameter. In the case they are parts needed by another
ValueProvider, acting parameters will not exist. Therefore, only parameters
required for metadata are used as input to calculate the ValueProviderCacheId.getIdForResolvedValues in interface ValueProviderCacheIdGenerator<org.mule.runtime.ast.api.ComponentAst>Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.