public class DefaultValueProviderCache extends Object implements ValueProviderCache
| Constructor and Description |
|---|
DefaultValueProviderCache(Map<String,org.mule.runtime.api.value.ValueResult> storage,
ToolingCacheIdGenerator<org.mule.runtime.ast.api.ComponentAst> cacheIdGenerator) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose(org.mule.runtime.ast.api.ComponentAst componentAst,
List<String> parameterNames)
Dispose the entry that is related to the received
ComponentAst and all the given parameterNames. |
org.mule.runtime.api.value.ValueResult |
getValues(org.mule.runtime.ast.api.ComponentAst componentAst,
String parameterName,
Callable<org.mule.runtime.api.value.ValueResult> callable)
Gets the posible values for the given parameter belonging to the
ComponentAst, if not present the Callable
should be called and result stored in order to resolve the values. |
public DefaultValueProviderCache(Map<String,org.mule.runtime.api.value.ValueResult> storage, ToolingCacheIdGenerator<org.mule.runtime.ast.api.ComponentAst> cacheIdGenerator)
public org.mule.runtime.api.value.ValueResult getValues(org.mule.runtime.ast.api.ComponentAst componentAst,
String parameterName,
Callable<org.mule.runtime.api.value.ValueResult> callable)
ValueProviderCacheComponentAst, if not present the Callable
should be called and result stored in order to resolve the values.getValues in interface ValueProviderCachecomponentAst - parameter container componentparameterName - name of the parameter to resolves values fromcallable - resolution logic if values not presentValueResult with the requested informationpublic void dispose(org.mule.runtime.ast.api.ComponentAst componentAst,
List<String> parameterNames)
ValueProviderCacheComponentAst and all the given parameterNames. If no parameterName
is received, then all values related to this ComponentAst will be disposeddispose in interface ValueProviderCachecomponentAst - the element to hash in order to know what to removeparameterNames - the list of parameters from where to remove the value providers. If empty, all entries from all value
providers from this component will be deleted.Copyright © 2022 MuleSoft, Inc.. All rights reserved.