public class DslElementBasedValueProviderCacheIdGenerator extends Object implements ValueProviderCacheIdGenerator<DslElementModel<?>>
| Constructor and Description |
|---|
DslElementBasedValueProviderCacheIdGenerator(ComponentLocator<DslElementModel<?>> locator) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ValueProviderCacheId> |
getIdForResolvedValues(DslElementModel<?> containerComponent,
String parameterName)
The returned
ValueProviderCacheId will contain all acting parameters required by the ValueProvider as parts. |
public DslElementBasedValueProviderCacheIdGenerator(ComponentLocator<DslElementModel<?>> locator)
public Optional<ValueProviderCacheId> getIdForResolvedValues(DslElementModel<?> containerComponent, String parameterName)
ValueProviderCacheId will contain all acting parameters required by the ValueProvider as parts.
In case the DslElementModel 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<DslElementModel<?>>Copyright © 2003–2020 MuleSoft, Inc.. All rights reserved.