public class DefaultToolingMetadataCache extends Object implements MetadataCache
| Constructor and Description |
|---|
DefaultToolingMetadataCache(Map<String,org.mule.metadata.api.model.MetadataType> metadataTypesCache,
Map<String,List<org.mule.runtime.api.metadata.resolving.MetadataFailure>> failureMetadataComponentCache,
Map<String,org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer>> metadataKeysCache,
ToolingMetadataCacheIdGenerator metadataCacheIdGenerator) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose(org.mule.runtime.ast.api.ComponentAst componentAst)
Dispose the entries that are related to the received
ComponentAst. |
org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer> |
getMetadataKeys(org.mule.runtime.ast.api.ComponentAst componentAst,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer>> resolver)
Gets the key metadata for the given ComponentAst) , if not present the
{@link Callable} should be called and result stored in order to resolve the metadata.
|
org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.meta.model.operation.OperationModel> |
getOperationMetadata(org.mule.runtime.ast.api.ComponentAst componentAst,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.meta.model.operation.OperationModel>> resolver)
Gets the operations metadata for the given
ComponentAst, if not present the
Callable should be called and result stored in order to resolve the metadata. |
org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.meta.model.source.SourceModel> |
getSourceMetadata(org.mule.runtime.ast.api.ComponentAst componentAst,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.meta.model.source.SourceModel>> resolver)
Gets the source metadata for the given
ComponentAst, if not present the
Callable should be called and result stored in order to resolve the metadata. |
void |
invalidateMetadataKeysFor(org.mule.runtime.ast.api.ComponentAst componentAst)
Invalidate the metadata keys that are related to the received
ComponentAst
Unlike MetadataCache.dispose(ComponentAst), if the ComponentAst corresponds to a configuration,
only the metadata key entries that are related to that configuration id will be invalidated |
public DefaultToolingMetadataCache(Map<String,org.mule.metadata.api.model.MetadataType> metadataTypesCache, Map<String,List<org.mule.runtime.api.metadata.resolving.MetadataFailure>> failureMetadataComponentCache, Map<String,org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer>> metadataKeysCache, ToolingMetadataCacheIdGenerator metadataCacheIdGenerator)
public org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.meta.model.operation.OperationModel> getOperationMetadata(org.mule.runtime.ast.api.ComponentAst componentAst,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.meta.model.operation.OperationModel>> resolver)
MetadataCacheComponentAst, if not present the
Callable should be called and result stored in order to resolve the metadata.getOperationMetadata in interface MetadataCachecomponentAst - of the operation for which to get the metadataresolver - the callback that knows how to fetch the metadata on Mule Runtime.public org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.meta.model.source.SourceModel> getSourceMetadata(org.mule.runtime.ast.api.ComponentAst componentAst,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.meta.model.source.SourceModel>> resolver)
MetadataCacheComponentAst, if not present the
Callable should be called and result stored in order to resolve the metadata.getSourceMetadata in interface MetadataCachecomponentAst - of the operation for which to get the metadataresolver - the callback that knows how to fetch the metadata on Mule Runtime.public org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer> getMetadataKeys(org.mule.runtime.ast.api.ComponentAst componentAst,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer>> resolver)
MetadataCachegetMetadataKeys in interface MetadataCacheresolver - the callback that knows how to fetch the metadata on Mule Runtime.public void dispose(org.mule.runtime.ast.api.ComponentAst componentAst)
MetadataCacheComponentAst.
If the ComponentAst corresponds to a configuration, then all metadata from all the operations that relate
to that configuration will also be disposed.dispose in interface MetadataCachepublic void invalidateMetadataKeysFor(org.mule.runtime.ast.api.ComponentAst componentAst)
MetadataCacheComponentAst
Unlike MetadataCache.dispose(ComponentAst), if the ComponentAst corresponds to a configuration,
only the metadata key entries that are related to that configuration id will be invalidatedinvalidateMetadataKeysFor in interface MetadataCacheCopyright © 2022 MuleSoft, Inc.. All rights reserved.