public class AstConfigurationMetadataCacheIdGenerator extends Object implements ConfigurationMetadataCacheIdGenerator
| Constructor and Description |
|---|
AstConfigurationMetadataCacheIdGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigurations(List<org.mule.runtime.ast.api.ComponentAst> configAsts)
Adds the configs to be considered when getting the Cache Ids.
|
Optional<MetadataCacheId> |
getConfigMetadataCacheId(String configName,
boolean justProviders) |
public AstConfigurationMetadataCacheIdGenerator()
public Optional<MetadataCacheId> getConfigMetadataCacheId(String configName, boolean justProviders)
getConfigMetadataCacheId in interface ConfigurationMetadataCacheIdGeneratorconfigName - the configuration name to get the MetadataCacheId forjustProviders - if true, it will return the id corresponding to the calculation of this config internal/child elements.
If false, it will return the id of the whole config.MetadataCacheId corresponding to the configuration}. In case the config was not provided previously
using AddConfiguration. This could happen, for example, when just performing a Type
Resolution, without Propagation.public void addConfigurations(List<org.mule.runtime.ast.api.ComponentAst> configAsts)
ConfigurationMetadataCacheIdGeneratoraddConfigurations in interface ConfigurationMetadataCacheIdGeneratorCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.